home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / GNU_KIT / DISK8.ZIP / src / makest / changelog < prev    next >
Encoding:
Text File  |  1991-08-08  |  169.5 KB  |  4,603 lines

  1. Sat May 25 02:39:52 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2.  
  3.     * Version 3.60.
  4.  
  5. Wed May 22 19:41:37 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  6.  
  7.     * Version 3.59.5.
  8.  
  9. Thu May 16 13:59:24 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  10.  
  11.     * main.c (main): Do USGr3 setvbuf behavior #ifdef APOLLO.
  12.     Don't handle SIGCHLD #ifdef USG (Apollo is USG but defines SIGCHLD).
  13.  
  14. Fri May 10 14:59:33 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  15.  
  16.     * remake.c [sgi]: Don't include <sys/file.h>.
  17.  
  18. Wed May  8 01:54:08 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  19.  
  20.     * make.h (SIGHANDLER): #define as (void *) #if __STDC__,
  21.     else (int (*)()).
  22.     (SIGNAL): Use it to cast return value.
  23.     * main.c (main): Cast SIG_IGN to SIGHANDLER when comparing.
  24.     * job.c (block_signals, unblock_signals): Use SIGNAL instead of signal.
  25.  
  26.     * main.c: Declare mktemp to return char*, not int.
  27.  
  28.     * job.c (new_job): Don't increment files_remade.
  29.     * remake.c (notice_finished_file): Do it here.
  30.  
  31.     * read.c (do_define): Don't clobber DEFINITION[-1] on empty defns.
  32.     Free storage that is no longer needed.
  33.  
  34. Wed Apr 24 20:49:48 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
  35.  
  36.     * misc.c (message): New fn to print informational msgs with
  37.     leading "make: " or "make[N]: ".
  38.     * make.h: Declare it.
  39.     * remake.c (update_file): Use it instead of printf.
  40.  
  41. Fri Apr 19 05:52:45 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
  42.  
  43.     * main.c (main): When there are no targets, if there were no
  44.     makefiles, print a different error message, which mentions makefiles.
  45.  
  46. Tue Apr 16 03:22:45 1991  Roland McGrath  (roland at geech.gnu.ai.mit.edu)
  47.  
  48.     * remake.c (update_file): Print "nothing to be done" instead of "is
  49.     up to date" if FILE->cmds == 0.
  50.  
  51.     * job.c [!WIFEXITED]: Define if not already defined.
  52.  
  53. Thu Apr 11 18:00:50 1991  Roland McGrath  (roland at wookumz.gnu.ai.mit.edu)
  54.  
  55.     * arscan.c (ar_name_equal): Fixed truncation comparison.
  56.  
  57. Tue Apr  2 16:17:35 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
  58.  
  59.     * glob.c: Use common version from djm.
  60.     * dir.c: Snarfed #ifdef mess for <dirent.h> or whatever from glob.c.
  61.     (dir_file_exists_p): Ignore directory entries with d_ino==0.
  62.  
  63. Mon Apr  1 20:49:45 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
  64.  
  65.     * Version 3.59.4.
  66.  
  67. Fri Mar 29 19:16:18 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
  68.  
  69.     * job.c (free_child): Free CHILD->environment and its elts.
  70.  
  71. Sat Mar 23 14:08:09 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
  72.  
  73.     * read.c (read_makefile): Don't ignore lines containing only
  74.     comments if they start with a tab.  Such lines should be passed to
  75.     the shell for it to decide about the comments.
  76.  
  77.     * job.c (free_child): Free CHILD->command_lines and its elts, not
  78.     CHILD->commands (which is obsolete).
  79.     * job.h, job.c: Remove obsolete `commands' member of `struct child'.
  80.  
  81. Sun Mar 17 18:40:53 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  82.  
  83.     * remake.c (update_file): Print a msg for a top-level up-to-date
  84.     phony target (a different one than for a real file).
  85.  
  86.     * read.c (conditional_line): Boundary check so we don't check the
  87.     value of the -1th elt of the stack (which is bogus).
  88.  
  89. Sat Mar 16 16:58:47 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  90.  
  91.     * read.c (conditional_line): Don't evaluate an if* when we're
  92.     already ignoring.  Instead, just push a new level, with a value of
  93.     1, to keep ignoring.
  94.  
  95. Tue Mar 12 00:16:52 1991  Roland McGrath  (roland at geech.ai.mit.edu)
  96.  
  97.     * Version 3.59.3.
  98.  
  99. Mon Mar 11 23:56:57 1991  Roland McGrath  (roland at geech.ai.mit.edu)
  100.  
  101.     * job.c (construct_command_argv_internal): Quote backslashes
  102.     when building the shell -c line.
  103.  
  104. Fri Mar  8 01:40:18 1991  Roland McGrath  (roland at geech.ai.mit.edu)
  105.  
  106.     * job.c (exec_command): Call user_access rather than setgid(getgid()).
  107.  
  108.     * misc.c (remove_comments): Renamed from collapse_line; took out
  109.     collapse_continuations call.
  110.     * make.h: Change decl.
  111.     * read.c (read_makefile): Collapse continuations on the line buffer
  112.     immediately after reading it.  Call remove_comments rather than
  113.     collapse_line (which is now defunct).
  114.  
  115. Thu Feb 21 18:06:51 1991  Roland McGrath  (mcgrath at cygint.cygnus.com)
  116.  
  117.     * misc.c (user_access, make_access): New fns to toggle btwn permissions
  118.     for user data (files and spawning children), and permissions for make
  119.     (for taking the load average, mostly).
  120.     * make.h: Declare them.
  121.     * job.c (start_job): Call make_access before wait_to_start_job, and
  122.     user_access after.
  123.     * main.c (main): Call user_access before doing much.
  124.  
  125. Mon Feb  3 15:02:03 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  126.  
  127.     * Version 3.59.2.
  128.  
  129. Tue Jan 29 20:30:50 1991  Roland McGrath  (roland at cygint.cygnus.com)
  130.  
  131.     * read.c (read_all_makefiles): Use allocated_variable_expand to expand
  132.     `$(MAKEFILES)', since the results are used across calls to
  133.     read_makefile, which could clobber them.
  134.  
  135. Wed Jan 23 00:24:10 1991  Roland McGrath  (roland at cygint.cygnus.com)
  136.  
  137.     * main.c (main): Call install_default_implicit_rules after reading
  138.     makefiles, not before.
  139.     * default.c (install_default_implicit_rules): If a suffix-rule file
  140.     entry has cmds, don't give it any from default_suffix_rules.
  141.  
  142. Fri Jan 17 17:39:49 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  143.  
  144.     * arscan.c: Added support for AIX archives.
  145.  
  146.     * remake.c: Don't include ar.h.
  147.     * main.c: Removed unused atol decl.
  148.     * arscan.c (ar_scan): Declare arg FUNCTION to return long int.
  149.     * ar.c (ar_touch): Don't perror for an invalid archive.
  150.     * make.h: Declare lseek as long int.
  151.  
  152.     * job.c [hpux]: Define getdtablesize a la USG.
  153.  
  154. Sun Jan 12 21:08:34 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  155.  
  156.     * Version 3.59.1.
  157.  
  158. Fri Jan 10 03:48:08 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  159.  
  160.     * job.c (search_path): Take new arg, place to put full pathname (rather
  161.     than mallocing it).
  162.     (exec_command): Pass it, using auto storage.
  163.  
  164.     * main.c (print_version): Updated copyright years.
  165.  
  166. Wed Jan  8 19:46:19 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  167.  
  168.     * job.c [_POSIX_SOURCE]: Just #include <sys/wait.h>, and define macro
  169.     WAIT_NOHANG in terms of waitpid.
  170.     [!_POSIX_SOURCE && (HAVE_SYS_WAIT || !USG)]: Don't #include <signal.h>
  171.     (make.h does).
  172.     Define macro WAIT_NOHANG in terms of wait3.
  173.     (child_handler): #ifdef on WAIT_NOHANG, not HAVE_SYS_WAIT || !USG.
  174.     Use WAIT_NOHANG macro instead of wait3.
  175.  
  176.     * file.h (struct file.command_state): Remove unused elt.
  177.  
  178. Wed Dec 26 18:10:26 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  179.  
  180.     * commands.c (set_file_variables): If FILE got its commands from
  181.     .DEFAULT, make $< == $@ (4.3 BSD/POSIX.2d11 compat).
  182.  
  183. Mon Dec 24 17:36:27 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  184.  
  185.     * default.c (default_variables): Rename 2nd LINK.s defn to LINK.S.
  186.  
  187. Fri Dec 14 15:05:25 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  188.  
  189.     * vpath.c (selective_vpath_search): Check for makefile-mentioned before
  190.     checking for actual existence.  The old order loses if the containing
  191.     directory doesn't exist (but a rule might make it).
  192.  
  193.     * make.h [__GNUC__]: Don't #define alloca if already #define'd.
  194.  
  195.     * rule.c (convert_to_pattern): Don't look at the target constructed for
  196.     the empty rule when making the null-suffix rule.  Construct it over
  197.     again, since the former may have been freed already.
  198.  
  199. Thu Dec 13 17:21:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  200.  
  201.     * make.h [__GNU_LIBRARY__]: Include <unistd.h> to get random fn decls.
  202.  
  203. Wed Dec 12 17:12:59 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  204.  
  205.     * make.h, arscan.c, glob.c: Only include <memory.h> #ifdef USG.
  206.  
  207.     * variable.c (define_variable_in_set): Replace env_overrides check that
  208.     wasn't really redundant (undoing Sep 28 change).  Add comment saying
  209.     why this check is necessary.
  210.  
  211.     * job.c, main.c [DGUX]: Needs siglist like USG.
  212.  
  213. Mon Dec 11 01:19:29 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  214.  
  215.     * default.c [M_XENIX]: For rules that are different for Xenix, use the
  216.     generic Unix version #ifdef __GNUC__.
  217.  
  218.     * main.c [M_XENIX]: Use USGr3-style setvbuf call.
  219.  
  220.     * read.c (find_percent): Do backslash folding correctly, not leaving
  221.     extra crud on the end of the string.
  222.  
  223. Sun Dec 10 21:48:36 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  224.  
  225.     * job.c: Don't declare wait3 if it's #defined.
  226.  
  227.     * GNUmakefile, compatMakefile, make.texinfo: Change make-info
  228.     to make.info.
  229.  
  230. Thu Dec  7 21:20:01 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  231.  
  232.     * make.h [STDC_HEADERS || __GNU_LIBRARY__ || _POSIX_SOURCE]: Use
  233.     ANSI <string.h> and names for str/mem functions.
  234.     Use <stdlib.h> to declare misc fns rather than explicit decls.
  235.     [_POSIX_SOURCE]: Don't declare kill (<signal.h> will).
  236.     Include <sys/types.h> before <signal.h> because some braindead
  237.     nonconformant 1003.1 implementation needs it.
  238.     * misc.c: Don't declare malloc, realloc.  Do it in make.h.
  239.     * arscan.c, glob.c: Use sequence for string fns from make.h verbatim.
  240.     * make.h (S_ISDIR, S_ISREG): Declare if necessary.
  241.     * commands.c (delete_child_targets), job.c (search_path), read.c
  242.     (construct_include_path): Use S_ISfoo(m) instead of
  243.     (m & S_IFMT) == S_IFfoo.
  244.     * dir.c, glob.c [_POSIX_SOURCE]: Use dirent.
  245.  
  246. Wed Nov 29 22:53:32 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  247.  
  248.     * Version 3.59.
  249.  
  250. Tue Nov 28 16:00:04 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  251.  
  252.     * arscan.c (ar_name_equal) [APOLLO]: Don't do `.o' hacking.  On Apollos
  253.     the full file name is elsewhere, and there is no length restriction (or
  254.     so I'm told).
  255.  
  256. Thu Nov 23 17:33:11 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  257.  
  258.     * load.c [hp300 && BSD] (LDAV_CVT): Define for this system.
  259.  
  260. Tue Nov 21 07:58:40 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  261.  
  262.     * read.c (record_files): Fix trivial bug with deciding to free storage
  263.     for a file name.
  264.  
  265. Thu Nov 16 06:21:38 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  266.  
  267.     * compatMakefile ($(bindir)/make): Install it setgid kmem.
  268.  
  269. Thu Nov  1 16:12:55 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  270.  
  271.     * GNUmakefile (make-*.tar.Z): Use `h' option to tar (dereference
  272.     symlinks), to grab texinfo.tex from wherever it lives.
  273.  
  274. Tue Oct 30 16:15:20 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  275.  
  276.     * Version 3.58.13.
  277.  
  278. Fri Oct 26 14:33:34 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  279.  
  280.     * GNUmakefile: make-*.tar.Z: Include texinfo.tex.
  281.  
  282. Tue Oct 23 19:34:33 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  283.  
  284.     * main.c (define_makeflags): When there are no flags to write, make
  285.     sure the array has two leading nulls, since `MAKEFLAGS' is defined from
  286.     &flags[1].
  287.  
  288.     * main.c (default_keep_going_flag): New variable (constant one).
  289.     (command_switches: -k, -S): Use above for default value.
  290.     (define_makeflags): Only write flag/flag_off switches if they are on,
  291.     and either there is no default value, or they are not the default.
  292.  
  293. Mon Oct 22 16:14:44 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  294.  
  295.     * main.c (struct command_switch): New member `no_makefile'.
  296.     (command_switches: -n, -q, -t): Set no_makefile == 1.
  297.     (define_makeflags): Take new arg MAKEFILE: if nonzero, don't use
  298.     options whose `no_makefile' flags are set.
  299.     (main): Call define_makeflags with MAKEFILE==1 before remaking
  300.     makefiles, and again with MAKEFILE==0 before remaking goals.
  301.  
  302. Tue Oct  2 17:16:45 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  303.  
  304.     * Version 3.58.12.
  305.  
  306. Mon Oct  1 15:43:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  307.  
  308.     * arscan.c [HPUX]: Use PORTAR==1 format.
  309.  
  310. Sat Sep 29 16:38:05 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  311.  
  312.     * make.h, remake.c, arscan.c: Don't declare `open'.
  313.  
  314. Fri Sep 28 04:46:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  315.  
  316.     * variable.c (define_variable_in_set): Remove redundant -e check.
  317.  
  318. Wed Sep 26 00:28:59 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  319.  
  320.     * job.c (start_job): Set RECURSIVE from the right elt of
  321.     CHILD->file->cmds->lines_recurse.
  322.  
  323.     * commands.c (chop_commands): Don't botch the line count for allocating
  324.     CMDS->lines_recurse.
  325.  
  326.     * Version 3.58.11.
  327.  
  328.     * job.c (start_job): Don't always increment CHILD->command_line!  Only
  329.     do it when CHILD->command_ptr has run out!  (Dumb bug.  Sigh.)
  330.  
  331. Thu Sep 20 02:18:51 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  332.  
  333.     * GNUmakefile [ARCH]: Give explicit rule for remote.{c,dep} to use
  334.     variable `REMOTE' for more flags.
  335.     ($(prog)): Link in $(LOADLIBES).
  336.  
  337. Wed Sep 19 02:30:36 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  338.  
  339.     * commands.h (struct commands): New member `ncommand_lines', the number
  340.     of elts in `command_lines' et al.
  341.     * commands.c (chop_commands): Set `ncommand_lines' elt of CMDS, and
  342.     don't put a nil pointer at the end of `command_lines'.
  343.     * job.h (struct child): New member `command_lines' to hold
  344.     variable-expanded command lines.
  345.     * job.c (new_job): Store expanded command lines in `command_lines'
  346.     member of new child.  Don't clobber FILE->cmds.
  347.     (start_job): Use CHILD->command_lines in place of
  348.     CHILD->file->cmds->command_lines.
  349.  
  350.     * variable.h, variable.c, job.c, expand.c: Undo yesterday's change,
  351.     which is no longer necessary since we have cleverly avoided the issue.
  352.  
  353.     * job.c (start_job): Don't variable-expand each command line.
  354.     (new_job): Do them all here, storing the expansions in the array.
  355.  
  356. Tue Sep 18 01:23:13 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  357.  
  358.     * variable.h (struct variable): Remove `expanding' member.
  359.     * variable.c (define_variable_in_set): Don't initialize it.
  360.     * expand.c (struct variable_expanding): New type, a linked list
  361.     containing `struct variable' pointers.
  362.     (variables_expanding): New variable, the chain of variables currently
  363.     being expanded.
  364.     (recursively_expand): Don't test and set `expanding' member.
  365.     Instead, run through the `variables_expanding' chain looking for a link
  366.     referring to V to find self-reference.  Add a new link to the chain,
  367.     describing V, before recursive expansion, and pop it off afterward.
  368.     * job.c (child_handler): Save `variables_expanding' and clear it before
  369.     calling start_job, and restore it afterward.  This avoids major lossage
  370.     when the SIGCHLD comes in the middle of variable expansion.
  371.  
  372. Mon Sep 17 14:46:26 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  373.  
  374.     * job.c, commands.c: Don't define sigmask.
  375.     * make.h: Put it here instead.
  376.  
  377.     * variable.c (target_environment): If `.NOEXPORT' was specified as a
  378.     target, only export command-line and environment variables, and
  379.     file-origin variables that were in the original environment.
  380.  
  381.     * make.man: Add missing ?roff control for `-I' option description.
  382.  
  383. Thu Sep 13 14:10:02 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  384.  
  385.     * load.c [UMAX]: Move #include <sys/sysdefs.h> to [not UMAX_43].
  386.  
  387. Wed Sep 12 15:10:15 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  388.  
  389.     * expand.c (recursively_expand): Don't use `reading_filename' and
  390.     `reading_lineno_ptr' if they're nil.
  391.  
  392. Thu Aug 30 17:32:50 1990  Roland McGrath  (roland at geech)
  393.  
  394.     * Version 3.58.10.
  395.  
  396. Tue Aug 28 04:06:29 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  397.  
  398.     * job.c [USG] (unknown_children_possible): New variable, set nonzero
  399.     when it's possible for children not in the `children' chain to die.
  400.     (block_signals) [USG]: Set it.
  401.     (unblock_signals) [USG]: Clear it.
  402.     (child_handler) [USG]: Don't complain about unknown children if
  403.     `unknown_children_possible' is set.
  404.  
  405.     * read.c (do_define): Make sure there's enough space for the newline,
  406.     so we don't write off the end of allocated space.
  407.  
  408.     * arscan.c (ar_name_equal): Fixed to work when MEM is AR_NAMELEN-1 but
  409.     NAME is not the same length.
  410.  
  411. Sat Aug 25 16:17:14 1990  Roland McGrath  (roland at geech)
  412.  
  413.     * job.c (construct_command_argv_internal): Use a static char array for
  414.     a constant, since old C has no auto aggregate initializers.
  415.  
  416. Thu Aug 23 16:11:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  417.  
  418.     * job.c (search_path): If PATH is nil or "" use a default path.
  419.  
  420. Wed Aug 22 01:05:32 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  421.  
  422.     * Version 3.58.9.
  423.  
  424.     * job.c (exec_command): Don't take PATH and SHELL args.  Get them from
  425.     ENVP.
  426.     (child_execute_job): Don't take FILE arg, and don't pass path and shell
  427.     to exec_command.
  428.     (start_job): Don't pass FILE arg to child_execute_job.
  429.     * function.c (expand_function: `shell'): Ditto.
  430.     * main.c (main): Don't pass path and shell to exec_command.
  431.  
  432. Fri Aug 17 23:17:27 1990  Roland McGrath  (roland at geech)
  433.  
  434.     * job.c (construct_command_argv_internal): New fn broken out of
  435.     construct_command_argv.  Takes strings SHELL and IFS instead of doing
  436.     variable expansion for them.  Recurse to make an argv for SHELL,
  437.     passing SHELL==0.  When SHELL==0, don't recurse for shell argv; make a
  438.     simple one using /bin/sh.
  439.     (construct_command_argv): Do the variable expansions and call above.
  440.  
  441. Thu Aug 16 19:03:14 1990  Roland McGrath  (roland at geech)
  442.  
  443.     * read.c (multi_glob): For ~USER/FILE, if USER isn't found, don't
  444.     change the file name at all.
  445.  
  446. Tue Aug  7 18:33:28 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  447.  
  448.     * function.c (expand_function: `suffix'/`notdir'): Don't kill the last
  449.     space if we never wrote one.
  450.  
  451.     * function.c (expand_function: `suffix'): Retain the dot, like the
  452.     documentation says.
  453.  
  454. Mon Aug  6 14:35:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  455.  
  456.     * Version 3.58.8.
  457.  
  458.     * main.c (decode_switches): For positive_int and floating cases, move
  459.     SW past the arg (and don't set it to ""), so another switch can follow.
  460.  
  461. Fri Aug  3 00:43:15 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  462.  
  463.     * job.c (child_execute_job): Use unblock_signals instead of
  464.     push_signals_blocked_p (0).
  465.  
  466.     * main.c (fatal_signal_mask): New variable, mask of signals caught with
  467.     fatal_error_signal.
  468.     (main): Set it.
  469.     * job.c ({block,unblock}_children): Renamed to {block,unblock}_signals.
  470.     Block/unblock both child signal and signals in fatal_signal_mask.
  471.     (children_blocked_p_{stack,max,depth}, {push,pop}_children_blocked_p):
  472.     Renamed from children to signals.  Use {block,unblock}_signals instead
  473.     of {block,unblock}_children.
  474.     * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
  475.     child_execute_job, main, log_working_directory), function.c
  476.     (expand_function: `shell'), job.h: Rename {push,pop}_children_blocked_p
  477.     to {push,pop}_signals_blocked_p.
  478.     * job.c (child_handler): Call {block,unblock}_signals instead of just
  479.     {block,unblock}_remote_children.  We need to block the fatal signals.
  480.  
  481. Thu Aug  2 22:41:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  482.  
  483.     * main.c, function.c: Fixed typos in comments.
  484.  
  485.     * file.c (print_file_data_base): Fix computation of avg files/bucket.
  486.  
  487. Tue Jul 31 22:11:14 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  488.  
  489.     * Version 3.58.7.
  490.  
  491. Wed Jul 25 16:32:38 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  492.  
  493.     * arscan.c (ar_name_equal): Fixed to really do it right.
  494.     (ar_member_pos): Fixed order of args.
  495.     * ar.c (ar_member_date_1): Ditto.
  496.  
  497. Fri Jul 20 15:30:26 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  498.  
  499.     * arscan.c (ar_name_equal): Rewritten.  Accounts for a possible
  500.     trailing slash in MEM.
  501.  
  502.     * remake.c (f_mtime): Keep track of whether ARNAME is used and free it
  503.     if not.  Also free MEMNAME.
  504.     * ar.c (ar_member_date, ar_touch): Ditto.
  505.  
  506.     * arscan.c (arscan) [HPUX or hpux]: Treat same as USGr3 PORTAR==1.
  507.  
  508.     * make.h: If NSIG is not defined, but _NSIG is, #define NSIG _NSIG.
  509.  
  510.     * compatMakefile: Don't use $* in explicit rules.
  511.  
  512.     * default.c (default_variables: "PREPROCESS.S"): Include $(CPPFLAGS).
  513.  
  514.     * remake.c (f_mtime): If FILE is an ar ref, get the member modtime.
  515.  
  516.     * function.c (string_glob): Terminate the string properly when it's
  517.     empty.
  518.  
  519. Wed Jul 18 11:26:56 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  520.  
  521.     * Version 3.58.6.
  522.  
  523.     * commands.c (set_file_variables): Fixed computation for ^F/?F elt len.
  524.  
  525. Sat Jul 14 13:41:24 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  526.  
  527.     * job.c (construct_command_argv): Always use
  528.     allocated_variable_expand_for_file instead of variable_expand_for_file
  529.     because we might be called from inside a variable expansion (for the
  530.     `shell' function).
  531.  
  532.     * function.c (expand_function: `shell'): Free the arglist's storage
  533.     correctly.  construct_command_argv only allocates ARGV and ARGV[0].
  534.  
  535.     * job.c (children_blocked_p_idx): Renamed to children_blocked_p_depth.
  536.     (push_children_blocked_p, pop_children_blocked_p): Use ..._depth
  537.     instead of ..._idx, and do it right!
  538.  
  539. Wed Jul 11 15:35:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  540.  
  541.     * make.h (SIGNAL): New macro to replace `signal' calls.  Does arg and
  542.     ret value casts to (void *) #ifdef __STDC__ to avoid conflicts btwn
  543.     ANSI and BSD `signal' and handler types.
  544.     * main.c (main), job.c (child_handler): Use it.
  545.  
  546. Fri Jul  6 00:00:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  547.  
  548.     * ar.c (ar_member_date, ar_touch): Pass 2nd arg to f_mtime.
  549.  
  550.     * read.c (read_makefile): Search the include path for MAKEFILES
  551.     variable makefiles (TYPE == 1), like it says in the manual.
  552.  
  553.     * file.h (struct file), main.c (struct command_switch): Remove trailing
  554.     commas from enums.
  555.  
  556.     * commands.c (execute_file_commands): Remove unused variables.
  557.     * commands.h: Declare chop_commands.
  558.     * make.h: Declare uniquize_deps.
  559.     * main.c (main): Remove unused variable.
  560.     (decode_switches): Remove unused label.
  561.     * remake.c: Include "ar.h" for ar_parse_name decl.
  562.     * implicit.c (try_implicit_rule): Remove unused variable.
  563.     * function.c (expand_function: `shell'): Declare fork, pipe.
  564.     * ar.c: Declare ar_name_equal.
  565.  
  566.     * GNUmakefile: If using gcc, add warning flags to CFLAGS.
  567.  
  568.     * remake.c: Remove decl of ar_member_date, since it's done in make.h.
  569.  
  570.     * remake.c (f_mtime): For ar refs, allow the archive to be found via
  571.     VPATH search if we're searching, and change the ar ref accordingly.
  572.  
  573.     * ar.c (ar_parse_name): New global fn to parse archive-member
  574.     references into the archive and member names.
  575.     (ar_member_date, ar_touch): Use it.
  576.     * make.h: Declare it.
  577.  
  578.     * remake.c (f_mtime): After doing rename_file, do check_renamed instead
  579.     of assuming rename_file will always set FILE->renamed (which it won't).
  580.  
  581.     * vpath.c (selective_vpath_search): Only accept prospective files that
  582.     don't actually exist yet are mentioned in a makefile if the file we are
  583.     searching for isn't a target.
  584.  
  585. Wed Jul  4 04:11:55 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  586.  
  587.     * remake.c (update_goal_chain): Do check_renamed after calling
  588.     file_mtime.
  589.     (check_dep): Ditto after update_file.
  590.  
  591.     * file.c (rename_file): Prettied up long message for merging cmds.
  592.  
  593.     * remake.c (update_file_1): Get each dep file's modtime, and allow for
  594.     it being renamed, before checking for a circular dep, since a renaming
  595.     may have introduced one.
  596.  
  597. Tue Jul  3 18:15:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  598.  
  599.     * ar.c (ar_touch): Don't free ARNAME since enter_file holds onto the
  600.     storage.
  601.  
  602.     * function.c (string_glob): Don't leave a trailing space.
  603.  
  604.     * read.c (do_define): Allow leading whitespace before `endef'.
  605.  
  606. Mon Jul  2 14:10:16 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  607.  
  608.     * implicit.c (pattern_search): No longer take NAME arg.  Instead take
  609.     ARCHIVE flag.  If ARCHIVE is nonzero, FILE->name is of the form
  610.     "LIB(MEMBER)"; rule for "(MEMBER)" is searched for, and LASTSLASH is
  611.     set to nil.  Since NAME was only non-nil when it was the archive member
  612.     name passed by try_implicit_rule, this change easily allows turning off
  613.     LASTSLASH checking for archive members without excessive kludgery.
  614.     (try_implicit_rule): Pass ARCHIVE flag instead of file name.
  615.  
  616.     * Version 3.58.5.
  617.  
  618.     * commands./c (set_file_variables): Don't kill last char of $(^D) elts.
  619.  
  620. Sat Jun 30 00:53:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  621.  
  622.     * ar.c (ar_member_date): Don't free ARNAME since enter_file holds onto
  623.     the storage.
  624.  
  625.     * arscan.c (ar_scan) [sun386 && PORTAR == 1]: Treat like USGr3.
  626.  
  627. Wed Jun 27 14:38:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  628.  
  629.     * main.c (main): Put a newline on the debugging message when deciding
  630.     not to remake a makefile to avoid a possible loop.
  631.     Only decide not to remake makefiles that have commands (as well as
  632.     being targets and having no deps).
  633.  
  634. Fri Jun 22 12:35:37 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  635.  
  636.     * default.c (default_variables): Define `LINK.s' and `LINK.S'.
  637.     (default_suffix_rules): Define .S.o rule.
  638.  
  639.     * job.c (construct_command_argv): If we decide to go the slow route,
  640.     free all storage for the chopped args.
  641.     (start_job): Free the argument list's storage correctly.
  642.     construct_command_argv only allocates ARGV and ARGV[0].
  643.  
  644. Tue Jun 19 18:27:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  645.  
  646.     * Version 3.58.4.
  647.  
  648. Fri Jun 15 21:12:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  649.  
  650.     * glob.c: New version from ai-lab which doesn't do [^abc].
  651.  
  652. Thu Jun  7 00:30:46 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  653.  
  654.     * dir.c: Copied dirent vs direct et al mess from glob.c.
  655.  
  656.     * glob.c: Replaced with updated version from djm.
  657.     * glob.c: Check macro DIRENT instead of _POSIX_SOURCE for <dirent.h>.
  658.     __GNU_LIBRARY__ implies DIRENT and STDC_HEADERS.
  659.  
  660. Thu May 31 22:19:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  661.  
  662.     * vpath.c (vpath_search): Don't stop the loop if a pattern matches but
  663.     the search fails.  All matching patterns have their paths searched
  664.     (like it says in the manual).
  665.  
  666.     * make.texinfo (Rules: Directory Search: Selective Search): Say that
  667.     multiple `vpath' directives with the same pattern DO accumulate, not
  668.     supersede earlier ones.
  669.  
  670.     * vpath.c (print_vpath_data_base): Increment the count of vpaths on
  671.     each loop iteration, rather than letting it stay zero.
  672.  
  673.     * Version 3.58.3.
  674.  
  675.     * job.c (block_children, unblock_children): Made static.
  676.     (push_children_blocked_p, pop_children_blocked_p): New functions to
  677.     push and pop whether children are blocked or not.
  678.     * job.h: Declare push_children_blocked_p, pop_children_blocked_p and
  679.     not block_children, unblock_children.
  680.     * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
  681.     child_execute_job), main.c (main, log_working_directory): Use sequences
  682.     of push_children_blocked_p (1) and pop_children_blocked_p () instead of
  683.     explicitly blocking and unblocking children.
  684.     * function.c (expand_function: `shell'): Don't unblock children.  The
  685.     push-pop sequence in wait_for_children makes it unnecessary.
  686.  
  687. Tue May 29 21:30:00 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  688.  
  689.     * read.c (do_define): Don't include the last newline in the definition.
  690.  
  691.     * function.c (expand_function: `shell'): Call construct_command_argv
  692.     before forking and don't fork if it returns nil.  Free the argument
  693.     list's storage before finishing.
  694.  
  695.     * job.c (start_job): Free the storage for the child's argument list
  696.     in the parent side of the fork after the child has been spawned.
  697.  
  698.     * job.c (start_job): If construct_command_argv returns nil, go to the
  699.     next command line.
  700.  
  701.     * job.c (construct_command_argv): Use the shell if the command contains
  702.     an unterminated quote.
  703.  
  704. Wed May 23 19:54:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  705.  
  706.     * Version 3.58.2.
  707.  
  708.     * read.c (read_makefile): Parse "override define" correctly.
  709.  
  710. Thu May 17 15:25:58 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  711.  
  712.     * arscan.c [USG]: Don't declare memcpy and memcmp.  <memory.h> should
  713.     do this anyway (and lack of declarations is harmless).
  714.  
  715.     * remote-customs.c: Renamed to remote-cstms.c for System V.
  716.     * remote.c [CUSTOMS]: Changed accordingly.
  717.  
  718. Sun May 13 14:38:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  719.  
  720.     * GNUmakefile: Use same cmds for doc tar.Z as for dist tar.Z (so the
  721.     contents go in make-N.NN).
  722.  
  723. Thu Apr 26 19:33:25 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  724.  
  725.     * Version 3.58.1.
  726.  
  727. Wed Apr 25 20:27:52 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  728.  
  729.     * job.c (init_siglist): Don't do SIGUSR1 and SIGUSR2 if they are the
  730.     same as SIGIO and SIGURG (true on Cray).
  731.  
  732. Tue Apr 24 20:26:41 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  733.  
  734.     * arscan.c (ar_scan): Do behavior for PORTAR == 1 and USGr3 also
  735.     #ifdef APOLLO.
  736.  
  737. Wed Apr 11 10:00:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  738.  
  739.     * job.c (exec_command): Set the effective GID to the real GID.  Somehow
  740.     this code got lost.
  741.  
  742.     * implicit.c (pattern_search): Use the right index variable when
  743.     seeing if we need to expand FILE->also_make.
  744.  
  745. Sun Mar  4 09:18:58 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  746.  
  747.     * Version 3.58.0.
  748.  
  749.     * remake.c (remake_file): Treat non-targets without commands under -t
  750.     the same as anything else without commands.
  751.  
  752. Sat Feb 24 17:46:04 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  753.  
  754.     * default.c (default_variables: PREPROCESS.S): Removed $< from defn.
  755.  
  756.     * main.c (main): Ignore arguments that are the empty string, rather
  757.     than feeding them to enter_file and barfing therein.
  758.  
  759. Wed Feb 14 16:28:37 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  760.  
  761.     * main.c (main): Call construct_include_path after doing chdirs.
  762.  
  763. Thu Feb  8 13:43:44 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  764.  
  765.     * Version 3.58.
  766.  
  767. Sat Feb  3 22:06:55 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  768.  
  769.     * Version 3.57.7.
  770.  
  771.     * make.texinfo (Implicit: Catalogue of Rules): For RCS, noted that
  772.     working files are never overwritten by the default rule.
  773.  
  774. Thu Feb  1 17:27:54 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  775.  
  776.     * rule.c (count_implicit_rule_limits): Redid loop control to not run
  777.     twice on freed rules.
  778.  
  779.     * GNUmakefile: Made `.dep' files be architecture-specific too.
  780.  
  781.     * main.c (main, log_working_directory) [USG]: Block children around
  782.     calls to `getwd' (actually `getcwd' on USG), because that function
  783.     sometimes spawns a child running /bin/pwd on USG.
  784.  
  785. Tue Jan 30 14:02:50 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  786.  
  787.     * function.c (subst_expand): Pay attention to SUFFIX_ONLY, putz.
  788.  
  789. Wed Jan 24 21:03:29 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  790.  
  791.     * make.man: Fixed repeated word.
  792.  
  793.     * make.texinfo (Missing): Reworded a buggy sentence.
  794.  
  795. Mon Jan 22 12:39:22 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  796.  
  797.     * main.c (print_version): Added 1990 to copyright notice.
  798.  
  799.     * Version 3.57.6.
  800.  
  801. Sat Jan 20 11:52:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  802.  
  803.     * file.c (rename_file): Don't free the storage for the old name, since
  804.     it might not have been malloc'd.
  805.  
  806.     * job.c (construct_command_argv): Call
  807.     allocated_variable_expand_for_file instead of variable_expand_for_file
  808.     to expand `$(SHELL)'.
  809.  
  810.     * make.texinfo (Bugs): Change address from roland@wheaties.ai.mit.edu
  811.     to roland@prep.ai.mit.edu.
  812.  
  813. Tue Jan 16 19:22:33 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  814.  
  815.     * Version 3.57.5.
  816.  
  817. Sun Jan 14 16:48:01 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  818.  
  819.     * job.c (start_job): Only call wait_to_start_job for the first command
  820.     line in each sequence.
  821.  
  822. Thu Jan  4 14:27:20 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  823.  
  824.     * load.c [LDAV_BASED] (wait_to_start_job): Loop while job_slots_used >
  825.     0, not > 1.
  826.  
  827.     * job.c (search_path): Don't return a pointer to local storage.
  828.     Allocate data space for the pathname instead.
  829.  
  830.     * function.c (expand_function: `shell'): Don't write garbage if the
  831.     child wrote no output.
  832.  
  833. Wed Jan  3 15:28:30 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  834.  
  835.     * Version 3.57.4.
  836.  
  837.     * file.h (struct file): New member `renamed', a `struct file *' that is
  838.     the place this file has been renamed to (or nil).
  839.     (check_renamed): Macro to check for a file having been renamed.
  840.     Dereferences the renaming and sets the given variable.
  841.     * file.c (rename_file): Completely rewritten.  Renames in place if
  842.     possible, or moves FILE to a different hash bucket if there is no
  843.     existing file with the new name.  If there is an existing file with the
  844.     new name, FILE is merged into it and FILE->renamed is set to point to
  845.     it.
  846.     * variable.c (merge_variable_sets): New fn to merge two variable sets.
  847.     (merge_variable_set_lists): New fn to merge two variable set lists.
  848.     * variable.h: Declare merge_variable_set_lists.
  849.     * remake.c (update_file_1, check_dep): Run `check_renamed' after
  850.     calling file_mtime, check_dep.
  851.     (update_file): Same after update_file_1.
  852.     (update_goal_chain, update_file_1, check_dep): Same after update_file.
  853.  
  854.     * read.c (uniquize_deps): New fn, broken out of record_files, to remove
  855.     duplicate deps from a chain.
  856.     (record_files): Use it.
  857.     * implicit.c (pattern_search): Use uniquize_deps.
  858.  
  859.     * file.h (file_mtime_1): New macro, like file_mtime, but take second
  860.     arg, passed to f_mtime.
  861.     (file_mtime): Implement as file_mtime_1 (file, 1).
  862.     (file_mtime_no_search): New macro: file_mtime (file, 0).
  863.     * remake.c (f_mtime): Take new arg SEARCH.  Only do VPATH and `-lNAME'
  864.     searching if it is nonzero.
  865.     * main.c (main): Use file_mtime_no_search for makefiles.
  866.     * remake.c (update_goal_chain): Use file_mtime_no_search if MAKEFILES.
  867.  
  868.     * main.c (printed_version): New variable, init'd to zero.
  869.     (print_version): Set it to nonzero before returning.
  870.     (die): If -v and !printed_version, call print_version before clean up
  871.     and death.
  872.  
  873.     * main.c (log_working_directory): Keep track of whether or not the
  874.     "Entering" message has been printed, and return without printing the
  875.     "Leaving" message if not.
  876.  
  877.     * main.c (decode_switches): Don't complain about missing args before
  878.     checking for a noarg_value elt in the command_switch structure.
  879.  
  880. Tue Jan  2 15:41:08 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  881.  
  882.     * make.texinfo (Commands: Recursion: Options/Recursion): Document
  883.     special case of -j.
  884.  
  885.     * make.texinfo, main.c, job.c: Changed copyright notices to include
  886.     1990.
  887.  
  888.     * make.texinfo (Top): Fixed introductory paragraph, which said that
  889.     `make' itself (instead of the manual) has various chapters.
  890.     (Variables: Advanced: Substitution Refs): When pxref'ing about
  891.     `patsubst', use node `Text Functions', not `Functions'.
  892.     Add an xref about `patsubst' after description of $(var:a%b=c%d).
  893.     (Functions: Syntax of Functions): Explain why mixing delimiters in
  894.     function/var refs is unwise.  Clarify fn arg evaluation order.
  895.     (Options): Reworded sentence about `-e'.
  896.     (Implicit: Implicit Variables): Don't say `RM' is unused.
  897.     Say the dflt values for the flag vars is empty unless otherwise noted,
  898.     since some have defaults.
  899.     (Implicit: Pattern Rules: Pattern Examples): Clarified use of $< and $@
  900.     in first example.
  901.     (Implicit: Last Resort): Don't say the .DEFAULT example creates files
  902.     "silently".  It's automatic, but not silent.
  903.     (Implicit: Search Algorithm): Fixed confusing ungrammatical sentence
  904.     for item 5.1.
  905.     (Archives: Archive Update): Added missing `next' pointer.
  906.     (Archives: Archive Symbols): Note that GNU `ar' deals with this
  907.     automatically.
  908.  
  909.     * job.c (search_path): New fn, to search for an executable file in a
  910.     search path (broken out of exec_command).
  911.     (exec_command): Take fourth arg, the shell program to use (if
  912.     necessary).  Use search_path for the program, and the shell program.
  913.     Pass args "file args ..." to shell program (with no -c), where FILE is
  914.     the full pathname of the program (script) to be run.
  915.     (child_execute_job): Pass shell program to exec_command.
  916.     * main.c (main): Ditto.
  917.  
  918.     * main.c (main): Don't write a message if exec_command returns, because
  919.     it will never return.
  920.  
  921. Fri Dec 22 16:19:58 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  922.  
  923.     * default.c (default_variables: "LINK.cc"): Use $(C++FLAGS) instead of
  924.     $(CFLAGS).
  925.  
  926. Wed Dec 20 09:58:48 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  927.  
  928.     * job.c (new_job): If start_job set the child's `command_state' to
  929.     `cs_finished', call notice_finished_file.
  930.  
  931. Sun Dec 17 19:45:41 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  932.  
  933.     * Version 3.57.3.
  934.  
  935. Wed Dec 13 17:57:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  936.  
  937.     * rule.c (convert_to_pattern): Accept files with dependencies as
  938.     suffix rules.
  939.  
  940. Thu Nov 30 15:47:13 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  941.  
  942.     * Version 3.57.2.
  943.  
  944.     * function.c (expand_function: `shell'): Don't clobber BUFFER and then
  945.     try to free it.
  946.  
  947.     * remake.c (update_file_1): Took code to force remake of nonexistent
  948.     deps out of #if 0, and changed the test to nonexistent non-intermediate
  949.     deps.  In version 4, I think removing this test completely will
  950.     implement the new feature that if a: b and b: c and c is newer than a,
  951.     b need not be remade.
  952.  
  953. Sun Nov 26 16:12:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  954.  
  955.     * compatMakefile (load.o, remote.o): Use $*.c instead of explicit file
  956.     names so that using VPATH works.
  957.  
  958. Tue Nov 21 14:57:18 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  959.  
  960.     * Version 3.57.1.
  961.  
  962. Fri Nov 10 03:28:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  963.  
  964.     * remake.c (check_dep): Set *MUST_MAKE_PTR if FILE does not exist after
  965.     being updated.  (The exact opposite test was here before; why???)
  966.     (update_file_1): Set a dep's `changed' member after updating it if it
  967.     is phony and has commands (because they will then always be executed).
  968.  
  969. Thu Nov  9 13:47:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  970.  
  971.     * load.c [UMAX]: #ifdef UMAX_43 include different headers for the
  972.     `inq_stats' call.
  973.     * compatMakefile (LOAD_AVG): Document UMAX_43.
  974.  
  975.     * Version 3.57.0.
  976.  
  977.     * commands.c (chop_commands): New function to chop commands into lines.
  978.     * job.c (new_job): Break that code out, and call chop_commands.
  979.     * remake.c (remake_file): Call chop_commands before looking at
  980.     FILE->cmds->any_recurse.
  981.  
  982.     * make.texinfo (Running: Goals): Don't say that the default target
  983.     won't be taken from an included makefile.
  984.  
  985.     * remake.c (update_file_1): #if 0 out setting MUST_MAKE if a dep
  986.     doesn't exist.
  987.  
  988. Fri Nov  3 15:53:03 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  989.  
  990.     * Version 3.57.
  991.  
  992.     * variable.c (try_variable_definition): Don't calculate useless value.
  993.  
  994.     * main.c (define_makeflags): Fixed -j propagation.
  995.  
  996.     * commands.c (execute_file_commands): Removed unused variable.
  997.  
  998. Sun Oct 29 11:11:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  999.  
  1000.     * commands.c (execute_file_commands): If the commands are empty, call
  1001.     notice_finished_file before returning.
  1002.  
  1003. Sat Oct 28 23:06:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1004.  
  1005.     * remake.c (update_file_1): Don't always update a target that has no
  1006.     deps.  Only do this for double-colon targets.
  1007.  
  1008. Wed Oct 25 16:36:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1009.  
  1010.     * main.c (main) [hpux]: hpux == HPUX.
  1011.     * compatMakefile (defines): Document that HPUX should be defined.
  1012.  
  1013. Tue Oct 24 19:19:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1014.  
  1015.     * Version 3.56.8.
  1016.  
  1017.     * job.c (exec_command): Fixed what mode bits are checked.
  1018.  
  1019.     * remake.c (update_file_1): "No cmds and no deps actually changed"
  1020.     loses if ! FILE->is_target.
  1021.  
  1022.     * make.texinfo (Variables: Setting): Don't say that spaces after a
  1023.     variable definition are ignored (since they aren't).
  1024.  
  1025. Mon Oct 23 14:34:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1026.  
  1027.     * Version 3.56.7.
  1028.  
  1029.     * remake.c (update_file_1): If, after being updated, any dependency
  1030.     does not exist, remake the target.
  1031.  
  1032.     * remake.c (update_file_1): Always update if FILE has commands but no
  1033.     deps.
  1034.  
  1035.     * commands.c (execute_file_commands): If we return early because there
  1036.     are no commands, set FILE->updated.
  1037.  
  1038. Thu Oct 19 18:47:37 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1039.  
  1040.     * arscan.c (ar_scan) [M_XENIX]: Don't run atoi or atol on the
  1041.     `struct ar_hdr' members that are int or long int on Xenix.
  1042.  
  1043. Sat Oct 14 10:43:03 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1044.  
  1045.     * arscan.c (ar_scan): Cosmetic clean ups.
  1046.     (ar_name_equal): New function to compare names, handling truncated
  1047.     member names and special `.o' truncation.
  1048.     (ar_member_pos): Use ar_name_equal.
  1049.     * ar.c (ar_member_date_1): Use ar_name_equal.
  1050.  
  1051.     * Version 3.56.6.
  1052.  
  1053.     * file.h (struct file): Made `update_status' a `short int', and moved
  1054.     it before `command_state' so the bitfields can be packed better.
  1055.  
  1056.     * remake.c (files_remade): Made global.
  1057.     (notice_finished_file): Don't increment files_remade.
  1058.     * job.c (new_job): Do.
  1059.  
  1060.     * job.c (start_job): Don't return a value.  Always set
  1061.     CHILD->file->command_state to either cs_running or cs_finished.
  1062.     (new_job, child_handler): Don't expect start_job to return a value.
  1063.     Instead, look at the file's command_state.
  1064.  
  1065.     * commands.c (chop_commands): Merged into job.c (new_job).
  1066.     * commands.h: Don't declare chop_commands.
  1067.  
  1068.     * job.c (start_job): Made static.
  1069.     (new_job): New function to create a `struct child' and call start_job.
  1070.     (free_child): New function to free a `struct child'.
  1071.     (child_handler, new_job): Call it.
  1072.     * job.h: Don't declare start_job.  Do declare new_job.
  1073.     * commands.c (execute_file_commands): Call new_job.
  1074.  
  1075.     * commands.c (execute_file_commands): Don't set FILE->update_status if
  1076.     start_job fails.
  1077.  
  1078.     * function.c (expand_function): Don't use `reading_filename' and
  1079.     `reading_lineno_ptr' if they're nil.
  1080.  
  1081. Fri Oct 13 18:16:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1082.  
  1083.     * read.c (find_semicolon): New function to look for an unquoted ; not
  1084.     preceded by an unquoted # in a string.
  1085.     (read_makefile): Call it before expanding the line.  If it finds a ;,
  1086.     cut the line short there before expanding it.  If not, call it again
  1087.     after expanding.
  1088.  
  1089.     * commands.c (execute_file_commands): Don't check FILE->command_state.
  1090.     We won't get called unless it's cs_not_started.
  1091.  
  1092.     * read.c (read_makefile): Call collapse_line on the variable-expanded
  1093.     rule line after checking for ; and #.
  1094.  
  1095.     * job.c (start_job): When there are no more commands, always return 0.
  1096.     * commands.c (execute_file_commands): Don't put the new child in the
  1097.     `children' chain unless FILE->command_state is cs_running.
  1098.  
  1099.     * read.c (read_makefile): Rewrote ;-handling to only do it once (why
  1100.     did I do it twice??) and to check for a # before the ;.
  1101.  
  1102.     * job.c (start_job): Set CHILD->file->update_status to 0 when we run
  1103.     out of commands.  Set it to 1 before returning failure.
  1104.     (child_handler): Don't set C->file->update_status to 0 when start_job
  1105.     returns success and commands are not running.
  1106.  
  1107.     * read.c (read_makefile): If there is a # before the ; for commands,
  1108.     forget the ; and commands.
  1109.  
  1110. Thu Oct 12 15:48:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1111.  
  1112.     * job.c (child_execute_job): Pass -c to the shell.
  1113.  
  1114. Wed Oct 11 18:41:10 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1115.  
  1116.     * Version 3.56.5.
  1117.  
  1118.     * main.c (define_makeflags): Cleaned up to keep better track of dashes
  1119.     written, etc.
  1120.  
  1121.     * function.c (expand_function: `shell'): When converting newlines to
  1122.     spaces in output, search with `index' calls rather than a simple loop.
  1123.  
  1124.     * main.c (main): Make sure stdout is line-buffered.
  1125.  
  1126.     * main.c (decode_switches): Always check for missing switch arg.
  1127.  
  1128. Mon Oct  9 17:17:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1129.  
  1130.     * Version 3.56.4.
  1131.  
  1132. Sat Oct  7 00:32:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1133.  
  1134.     * commands.c (set_file_variables): #ifdef NO_ARCHIVES, still set $@ and
  1135.     $%.
  1136.  
  1137.     * commands.c (set_file_variables): Include a trailing slash in the
  1138.     directory variables (@D, etc.).
  1139.  
  1140.     * job.c (child_handler): Call notice_finished_file after changing a
  1141.     child's state to `cs_finished'.
  1142.     * remake.c (update_file_1): Don't call notice_finished_file if
  1143.     FILE->command_state == cs_finished.
  1144.  
  1145. Wed Oct  4 16:09:33 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1146.  
  1147.     * Version 3.56.3.
  1148.  
  1149. Tue Oct  3 21:09:51 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1150.  
  1151.     * read.c (read_all_makefiles): When setting elements of MAKEFILES from
  1152.     the contents of read_makefiles, make sure we're using the right
  1153.     element.
  1154.  
  1155.     * dir.c, glob.c [USGr3 || DIRENT]: Don't define d_ino as d_fileno.
  1156.  
  1157.     * Version 3.56.2.
  1158.  
  1159.     * remake.c (update_file_1): Return zero after calling remake_file if
  1160.     FILE->command_state != cs_finished.  Test update_status thoroughly.
  1161.  
  1162.     * commands.c (execute_file_commands): Don't call notice_finished_file.
  1163.  
  1164.     * remake.c (remake_file): Return immediately after calling
  1165.     execute_file_commands.
  1166.  
  1167. Sat Sep 30 14:57:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1168.  
  1169.     * Version 3.56.1 (alpha).
  1170.  
  1171.     * file.h (struct file): Made `update_status' not be a bitfield, since
  1172.     some broken compilers don't handle it right.
  1173.  
  1174.     * function.c (expand_function: `join'): Don't clobber the pointers and
  1175.     then try to free them.
  1176.  
  1177.     * job.c (exec_command): Fixed & vs = precedence problem.
  1178.  
  1179. Thu Sep 28 17:29:56 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1180.  
  1181.     * remake.c (update_file_1): Fixed typo in debugging output.
  1182.  
  1183.     * remake.c (library_file_mtime): Search for /usr/local/lib/libLIB.a
  1184.     after /usr/lib/libLIB.a.
  1185.  
  1186. Tue Sep 26 16:07:58 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  1187.  
  1188.     * read.c (conditional_line): For `ifeq (a, b)', swallow space after the
  1189.     comma.
  1190.  
  1191. Sun Sep 24 13:25:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1192.  
  1193.     * function.c (patsubst_function): If BY_WORD and the match is not a
  1194.     full word, update the text pointer correctly.
  1195.  
  1196.     * function.c (expand_function: `word'): Don't lose track of the second
  1197.     arg's expansion and free something else instead.
  1198.  
  1199. Fri Sep 22 16:15:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1200.  
  1201.     * Version 3.56.
  1202.  
  1203. Thu Sep 21 14:28:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1204.  
  1205.     * main.c (main): Make an array of the mtimes of the makefiles before
  1206.     updating them, and compare their file_mtimes against this later.  Don't
  1207.     re-exec if a makefile was successfully updated but didn't change.  If a
  1208.     makefile failed to be remade and no longer exists, die.  If a makefile
  1209.     failed to be remade, but changed anyway, re-exec.  If a makefile failed
  1210.     to be remade, but is unchanged, continue on.
  1211.  
  1212. Wed Sep 20 18:02:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1213.  
  1214.     * Version 3.55.6.
  1215.  
  1216.     * implicit.c (pattern_search): Maintain an array CHECK_LASTSLASH of the
  1217.     CHECK_LASTSLASH flag values used to match each member of TRYRULES.
  1218.     When making FILE->stem, if CHECKED_LASTSLASH[FOUNDRULE], prepend the
  1219.     part of FILENAME before LASTSLASH.
  1220.  
  1221. Tue Sep 19 17:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1222.  
  1223.     * dir.c (dir_file_exists_p): Check for FILENAME being nil before
  1224.     checking for it being "".
  1225.  
  1226.     * main.c (define_makeflags): Fixed test for whether a flag/flag_off
  1227.     option was non-default.  Also changed to generate a string that Unix
  1228.     Make will grok (except for FP/int values and new flags).
  1229.  
  1230.     * job.c (child_execute_job): Don't use the shell's -c option.
  1231.     Also fixed an off-by-one bug in the ARGV -> shell arg list copying.
  1232.  
  1233. Mon Sep 18 15:17:31 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1234.  
  1235.     * Version 3.55.5.
  1236.  
  1237.     * read.c (parse_file_seq): Check the beginning of the file name for a
  1238.     `./', not the two chars after the end of the name (Q rather than P).
  1239.  
  1240.     * job.c (child_execute_job): Include all of ARGV in the arg list for
  1241.     the shell.
  1242.  
  1243.     * main.c (define_makeflags): Don't include floating and positive_int
  1244.     options in !PF.
  1245.  
  1246.     * job.c (exec_command): Set the effective gid to the real gid before
  1247.     execing.
  1248.  
  1249.     * job.c (child_execute_job): Don't clobber the arg list when execing
  1250.     the shell.
  1251.  
  1252. Sun Sep 17 15:27:19 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1253.  
  1254.     * main.c (define_makeflags): Moved all the checking inside the switch.
  1255.  
  1256.     * load.c [LDAV_BASED] (load_average): When we can't get the load
  1257.     average, return zero instead of running off the end.
  1258.  
  1259.     * file.c: Include variables.h.
  1260.     * job.c: Declare dup2 and {block,unblock}_remote_children.
  1261.     * file.h: Declare f_mtime.
  1262.     * job.c: Don't declare construct_command_argv, since job.h does.
  1263.     * function.c, main.c, load.c, remake.c: Include job.h.
  1264.     * load.c [LDAV_BASED] (load_average): Declare nlist.
  1265.     * variable.h: Declare print_file_variables.
  1266.     * job.c [!USG]: Don't declare sigsetmask.
  1267.     [!USG]: Declare getdtablesize.
  1268.     Don't declare load_average.  Do declare wait_to_start_job.
  1269.     Declare vfork, gete[gu]id, execve.
  1270.     * commands.c: Declare remote_kill, getpid.
  1271.     * make.h: Declare kill, exit, sigblock, pipe, close, ctime, open,
  1272.     lseek, read.
  1273.     * make.h [not USG]: Declare sigsetmask.
  1274.     * job.h: Declare wait_for_children and {block,unblock}_children.
  1275.  
  1276.     * dir.c (dir_file_exists_p): If FILENAME is nil, read in the whole
  1277.     directory.
  1278.     (find_directory): When we want to read in the whole directory, call
  1279.     dir_file_exists_p with nil instead of "".
  1280.  
  1281.     * file.h (struct file), job.h (struct child),
  1282.       variable.h (struct variable): Use bitfields for flags.
  1283.     * make.h (ENUM_BITFIELD): If GCC or #ifdef ENUM_BITFIELDS, define as
  1284.     :BITS, else empty.
  1285.     * compatMakefile (defines): Document ENUM_BITFIELDS.
  1286.  
  1287. Sat Sep 16 12:38:58 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1288.  
  1289.     * Version 3.55.4 (alpha).
  1290.  
  1291.     * GNUmakefile (dist): Depend on default and doc.
  1292.  
  1293.     * load.c [LDAV_BASED]: Include <nlist.h> rather than <a.out.h>; #ifdef
  1294.     NLIST_NAME_UNION, use n_un.n_name instead of n_name.
  1295.     * compatMakefile (LOAD_AVG): Document NLIST_NAME_UNION.
  1296.  
  1297.     * job.c [USG-ish]: Don't redefine WIF{SIGNALED,EXITED} if they're
  1298.     already defined.
  1299.  
  1300. Fri Sep 15 13:59:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1301.  
  1302.     * glob.c, dir.c [USGr3 or DIRENT]: If neither d_ino, nor d_fileno is
  1303.     defined, define d_ino as d_fileno.
  1304.  
  1305. Thu Sep 14 18:29:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1306.  
  1307.     * job.c: Don't declare exec_command static.
  1308.  
  1309.     * make.texinfo (Name Index): Changed title to include directives.
  1310.  
  1311.     * Version 3.55.3 (alpha).
  1312.  
  1313.     * make.texinfo (Running: Options): Document -e.
  1314.  
  1315.     * main.c (main): Always give imported environment variables origin
  1316.     `o_env'.
  1317.     * variable.c (define_variable_in_set): Under -e, if ORIGIN, or an
  1318.     existing variable's origin, is `o_env', make it `o_env_override'.
  1319.  
  1320.     * load.c: Use the symbol KERNEL_FILE_NAME instead of KERNEL_FILE.
  1321.     * compatMakefile: Changed the comment for `LOAD_AVG' accordinly.
  1322.  
  1323. Thu Sep  7 16:46:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1324.  
  1325.     * Version 3.55.2 (alpha).
  1326.  
  1327.     * variable.c (print_variable_set), rule.c (print_rule_data_base),
  1328.     file.c (print_file_data_base): If NO_FLOAT is defined, don't use
  1329.     floating-point for printing statistics.
  1330.     * compatMakefile (defines): Document NO_FLOAT.
  1331.  
  1332.     * make.h (HASH): New macro to add the hashing value of one char to a
  1333.     variable.c.
  1334.     * file.c (lookup_file, enter_file, rename_file): Use it.
  1335.     * dir.c (find_directory, dir_file_exists_p, file_impossible_p): Ditto.
  1336.     * variable.c (define_variable_in_set, lookup_variable): Same here.
  1337.  
  1338.     * variable.c, file.c, dir.c: Don't define *_BUCKETS if they are already
  1339.     defined.
  1340.  
  1341.     * compatMakefile (defines): Added comment about defining NO_ARCHIVES.
  1342.     (ARCHIVES, ARCHIVES_SRC): New variables for {ar,arscan}.[oc].
  1343.     (objs, srcs): Use $(ARCHIVES) and $(ARCHIVES_SRC).
  1344.     * commands.c (set_file_variables), dir.c (file_exists_p),
  1345.     remake.c (touch_file, name_mtime), implicit.c (try_implicit_rule,
  1346.     pattern_search), make.h: If NO_ARCHIVES is #defined, don't do any
  1347.     archive stuff.
  1348.  
  1349.     * commands.c (set_file_variables): Don't kill the last char of
  1350.     directory names in $([@*<%?^]D).
  1351.  
  1352. Wed Sep  6 15:23:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1353.  
  1354.     * default.c (default_terminal_rules {%:: %,v}, {%:: RCS/%,v}): Don't
  1355.     run co if the target exists.
  1356.  
  1357.     * glob.c (glob_match): [!xyz], rather than [^xyz], means none of [xyz].
  1358.  
  1359.     * glob.c: Misc minor cosmetic changes.
  1360.  
  1361. Tue Sep  5 14:49:56 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  1362.  
  1363.     * load.c [LDAV_BASED] (load_average): Check for == -1, rather than < 0
  1364.     to see if lseek fails.  On some systems, `avenrun' is at an offset >
  1365.     (2**31)-1, and lseek succeeds, returning a negative value.
  1366.  
  1367. Mon Sep  4 11:07:58 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  1368.  
  1369.     * rule.c (new_pattern_rule): Return `int' instead of `void': nonzero if
  1370.     the passed rule was used, zero if not.
  1371.     (install_pattern_rule): Pay attention to the return from
  1372.     new_pattern_rule, and don't set the rule's `terminal' flag or give it
  1373.     commands unless it's used.
  1374.     (create_pattern_rule): Same idea.
  1375.  
  1376.     * dir.c (find_directory): Removed unused variable.
  1377.  
  1378.     * commands.c (execute_file_commands): Removed unused variable.
  1379.  
  1380.     * read.c (record_files): Don't use NAME after freeing it.
  1381.  
  1382. Sat Sep  2 00:33:19 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  1383.  
  1384.     * Version 3.55.1 (alpha).
  1385.  
  1386.     * function.c (string_glob): Don't add spaces after file names that
  1387.     aren't added.  (Also means don't add spaces without checking the size
  1388.     of the buffer.)
  1389.  
  1390.     * remake.c (update_goal_chain): Don't remove makefiles with cmds and no
  1391.     deps from the chain.
  1392.     * main.c (main): Do it here, before calling update_goal_chain.
  1393.  
  1394.     * remake.c (update_goal_chain): When updating fails, change STATUS even
  1395.     if MAKEFILES is set.  Also stop remaking when updating fails if not
  1396.     under -k and MAKEFILES is not set.
  1397.  
  1398.     * remake.c (remake_file, update_file_1, notice_finished_file),
  1399.     commands.c (execute_file_commands), make.h, commands.h: The functions
  1400.     remake_file, notice_finished_file, and execute_file_commands no longer
  1401.     return values, and their callers no longer expect values returned.
  1402.  
  1403.     * remake.c (notice_finished_file): Don't set FILE's modtime to now if
  1404.     it is a non-target with no commands.
  1405.  
  1406. Fri Sep  1 00:04:39 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  1407.  
  1408.     * read.c (read_all_makefiles): After freeing each element on MAKEFILES,
  1409.     replace it with the name stored in read_makefiles by read_makefile.
  1410.  
  1411.     * remake.c (update_file_1): Don't decide not to remake if FILE has no
  1412.     cmds and no deps actually changed if FILE doesn't have any deps.
  1413.  
  1414.     * file.c (remove_intermediate): Remove precious files that also have
  1415.     the `dontcare' flag set.
  1416.  
  1417.     * remake.c (update_file_1): Don't always remake if FILE has cmds but no
  1418.     deps; only if FILE is double-colon.  (I don't know why this should be
  1419.     done for double-colon targets, but that's what Unix make does.)
  1420.  
  1421.     * load.c [LDAV_BASED] (load_average): Write error messages if the
  1422.     various system calls fail.  Keep track of if we've failed before.
  1423.     The first time we fail, write a message saying -l won't be enforced.
  1424.     The first time we succeed after having failed, write a message saying
  1425.     -l will be enforced again.
  1426.  
  1427.     * remake.c [USG]: Don't #include <sys/file.h>
  1428.  
  1429.     * load.c [generic Unix LDAV_BASED]: #include <fcntl.h> #ifdef USG,
  1430.     else <sys/file.h> instead.
  1431.  
  1432.     * job.c [USG && !USGr3 && !HAVE_DUP2]: Remove redundant
  1433.     #include <errno.h> and declaration of `errno'.
  1434.     [...] (dup2): Fixed so it won't always lose.
  1435.  
  1436.     * default.c (default_suffix_rules: .texinfo.dvi): Copy, rather than
  1437.     move, the aux and index files, so the TeX run can use them.
  1438.  
  1439.     * compatMakefile: Remove redundant comment.
  1440.  
  1441.     * load.c [generic Unix LDAV_BASED]: Include <a.out.h> instead of
  1442.     <nlist.h>, since the `struct nlist' declaration in <nlist.h> varies
  1443.     more than the one in <a.out.h>.
  1444.     (load_average): Use the `n_un.n_name' field of the `struct nlist',
  1445.     since the <a.out.h> declaration uses the union.
  1446.  
  1447.     * main.c (main): For the temporary files made for stdin makefiles, set
  1448.     the `intermediate' and `dontcare' flags.
  1449.     * file.c (remove_intermediates): Don't print any messages for files
  1450.     whose `dontcare' flag is set.  (The only files that will be
  1451.     intermediate and `dontcare' will be the temporary files made for stdin
  1452.     makefiles.)
  1453.  
  1454.     * job.c (exec_command): Made global.
  1455.     * job.h: Declare it.
  1456.     * main.c (main): Use exec_command when re-execing.
  1457.  
  1458.     * make.h: Declare environ.
  1459.     * make.c: Don't.
  1460.  
  1461.     * job.c (child_execute_job): New function to perform everything done in
  1462.     the child side of a fork (for a job or `shell' function).
  1463.     (start_job): Call it.
  1464.     * job.h: Declare construct_command_argv and child_execute_job.
  1465.     * function.c (expand_function: `shell'): Use child_execute_job.
  1466.  
  1467. Thu Aug 31 18:42:51 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  1468.  
  1469.     * function.c (expand_function: `shell'): Remove a trailing newline
  1470.     instead of turning it into a space.
  1471.  
  1472.     * main.c (main): Do init_siglist #ifdef HAVE_SIGLIST.
  1473.  
  1474.     * job.c [WTERMSIG || (USG && !HAVE_SYS_WAIT)]: Test each W* macro
  1475.     separately and define all those that aren't defined.
  1476.  
  1477. Sat Aug 26 15:13:21 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1478.  
  1479.     * ar.c (ar_name): Return zero for `(foo)'.
  1480.  
  1481.     * Version 3.55.
  1482.  
  1483.     * make.texinfo (Rules: Multiple Targets): Make this node's `next'
  1484.     pointer point to `Static Pattern'.
  1485.     * make.texinfo (Makefiles: MAKEFILES Variable): Make this node's `prev'
  1486.     pointer point to `Makefile Names'.
  1487.  
  1488.     * make.1: Renamed to make.man.
  1489.     * compatMakefile: Define `mandir' and `manext'.
  1490.     (install): Depend on $(mandir)/make.$(manext).
  1491.     ($(mandir)/make.$(manext)): Depend on make.man and copy it to $@.
  1492.     ($(bindir)/make): Use `make' rather than $<; so Unix make can grok it.
  1493.  
  1494. Thu Aug 24 03:35:48 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1495.  
  1496.     * variable.c (target_environment): Allow variables that start with
  1497.     underscores.
  1498.  
  1499. Wed Aug 23 22:50:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1500.  
  1501.     * variable.c (target_environment): Reject variables that don't start
  1502.     with letters.
  1503.  
  1504. Tue Aug 22 04:14:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1505.  
  1506.     * GNUmakefile (make-$(version).tar.Z): Put make.1 (the Unix manual
  1507.     page) in the tar file.
  1508.  
  1509.     * variable.c (target_environment): Don't write variables with origin
  1510.     o_default (i.e., ones from default.c).
  1511.     * make.texinfo (Commands: Recursion: Variables/Recursion): Document
  1512.     that default variables are not put in the environment.
  1513.  
  1514.     * remake.c (update_file_1): Remake all targets with commands but no
  1515.     deps.
  1516.  
  1517. Sat Aug 19 06:03:16 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1518.  
  1519.     * remake.c (update_file_1): In the final loop, set the deps'
  1520.     `changed' members if they are newer than FILE.
  1521.  
  1522.     * remake.c (update_goal_chain): Under -d, print a message if we decide
  1523.     not to remake a makefile so as to avoid a possible infinite loop.
  1524.  
  1525. Fri Aug 18 20:30:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1526.  
  1527.     * remake.c (remake_file): Cleaned up.
  1528.  
  1529.     * commands.c (execute_file_commands): If the commands are empty, set
  1530.     FILE->update_status to zero before returning.
  1531.  
  1532.     * remake.c (notice_finished_file): Set `last_mtime' fields to zero
  1533.     instead of calling name_mtime; file_mtime will do that later if anybody
  1534.     cares.
  1535.  
  1536. Thu Aug 17 10:01:11 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1537.  
  1538.     * make.texinfo (Rules: Wildcards: Wildcard Examples): Give this node a
  1539.     `prev' pointer.
  1540.  
  1541.     * Version 3.54.9 (alpha).
  1542.  
  1543.     * make.texinfo: Fixed some @nodes.
  1544.  
  1545.     * remake.c (check_dep): Don't set *MUST_MAKE_PTR if FILE doesn't exist
  1546.     after running update_file.
  1547.  
  1548.     * remake.c (notice_finished_file): If FILE has no commands, pretend its
  1549.     modtime is now.
  1550.  
  1551.     * remake.c (update_file_1): In the loops that call update_file on the
  1552.     deps, compare modtimes before and after (unless deps are still being
  1553.     made) and set the deps' `changed' members.  Do not set the `changed'
  1554.     members in the loop that prints the newer/older debugging messages.
  1555.     * remake.c (update_file_1): If no deps changed and FILE has no
  1556.     commands, decide it doesn't need remaking.
  1557.  
  1558.     * remake.c (update_file_1): Print a debugging message if we take
  1559.     commands from default_file.
  1560.  
  1561.     * make.texinfo (Rules: Directory Search: Selective Search): Removed
  1562.     note about warning for `vpath' with a constant pathname, since it isn't
  1563.     warned about anymore.
  1564.  
  1565.     * remake.c (update_goal_chain): If MAKEFILES, remove makefiles which
  1566.     are targets and have no deps.
  1567.     * make.texinfo (Makefiles: Remaking Makefiles): Document that makefiles
  1568.     will not be remade if they are targets but have no dependencies.
  1569.  
  1570. Tue Aug 15 00:00:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  1571.  
  1572.     * remake.c (notice_finished_file): Increment files_remade for non-phony
  1573.     files if they didn't exist before (even if they still don't).
  1574.  
  1575.     * job.c: Include <errno.h> and declare errno.
  1576.  
  1577.     * job.c (exec_command): If the execve fails with ENOEXEC (Exec format
  1578.     error), return instead of exiting the child process.
  1579.  
  1580.     * job.c (start_job): In the child side, if exec_command fails, try
  1581.     using the shell.
  1582.  
  1583.     * job.c (start_job): In the child side, call unblock_children instead
  1584.     of sigsetmask.
  1585.  
  1586.     * remake.c (notice_finished_file): Under -n or -q, always increment
  1587.     files_remade for non-phony files.
  1588.  
  1589.     * rule.c (intall_pattern_rule): Use find_percent.
  1590.  
  1591.     * vpath.c (vpath_search): Pass the `percent' members to
  1592.     pattern_matches.
  1593.  
  1594. Mon Aug 14 23:30:24 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  1595.  
  1596.     * vpath.c (struct vpath): New member `percent', to hold a pointer into
  1597.     the pattern where the % is.
  1598.     (construct_vpath_list): Call find_percent on the pattern and set the
  1599.     new `percent' member.
  1600.     * read.c (read_makefile): Don't run find_percent on `vpath' directive
  1601.     patterns.
  1602.  
  1603.     * function.c (pattern_matches): Take new arg PERCENT, a pointer into
  1604.     PATTERN where the % is.  If PERCENT is nil, copy PATTERN into local
  1605.     space and run find_percent on it.
  1606.     (expand_function: `filter', `filter-out'): Pass new arg to
  1607.     pattern_matches.
  1608.     * read.c (record_files): Pass PATTERN_PERCENT to pattern_matches for
  1609.     static pattern rules.  Save the percent pointer into implicit rule
  1610.     targets, and pass them to create_pattern_rule.
  1611.     * rule.c (convert_to_pattern): Pass new arg to create_pattern_rule.
  1612.     (create_pattern_rule): Take new arg TARGET_PERCENTS, nil or an array of
  1613.     pointers into the corresponding elements of TARGETS, where the %s are.
  1614.  
  1615. Sun Aug 13 00:29:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1616.  
  1617.     * Version 3.54.8.
  1618.  
  1619.     * README.templatate, README-doc.template: New files, turned into README
  1620.     and README-doc to go into the two distribution tar files.
  1621.     * GNUmakefile: Added a rule to edit the version number in
  1622.     README.template and README-doc.template, producing README and
  1623.     README-doc.
  1624.  
  1625.     * remake.c (update_goal_chain): If -n or -q is in effect for a
  1626.     makefile, and it got updated, don't change STATUS, so we can still
  1627.     return -1 (meaning nothing was done).  This avoids an infinite loop on
  1628.     "make -n Makefile".
  1629.  
  1630. Sat Aug 12 23:14:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1631.  
  1632.     * remake.c (notice_finished_file): Treat -q the same as -n.
  1633.  
  1634.     * remake.c (update_goal_chain): Fixed handling of return from
  1635.     update_file.  If -n or -q is in effect, ignore it.
  1636.  
  1637.     * job.c (start_job): Don't test for -t.  We should never get called in
  1638.     that case.
  1639.  
  1640. Fri Aug 11 04:09:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1641.  
  1642.     * function.c (expand_function): Removed unused variables.
  1643.     (handle_function): Removed unused variable.
  1644.  
  1645.     * main.c (main): Removed unused variable.
  1646.  
  1647. Wed Aug  9 09:37:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1648.  
  1649.     * Version 3.54.7.
  1650.  
  1651.     * remake.c (notice_finished_file): If FILE's modtime actually changed,
  1652.     increment files_remade.
  1653.     (remake_file): Don't increment files_remade.
  1654.  
  1655.     * remake.c (update_file): Don't print "up to date" messages for
  1656.     phony files.
  1657.  
  1658.     * job.c (child_handler): Don't set C->file->update_status to 1 if
  1659.     start_job returns nonzero under -n or -t.
  1660.  
  1661.     * expand.c (variable_expand): Count parens in $(foo:a=b) refs.
  1662.  
  1663.     * main.c: Removed old declaration of `glob_tilde' (which hasn't existed
  1664.     for a few months).
  1665.  
  1666. Tue Aug  8 23:53:43 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1667.  
  1668.     * job.c (exec_command): Fixed to not ignore the last path component and
  1669.     to do the right thing with an empty path.
  1670.  
  1671. Fri Aug  4 15:58:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1672.  
  1673.     * remake.c (library_file_mtime): Look for libLIB.a, not /libLIB.a.
  1674.     Do VPATH search on libLIB.a, not /usr/lib/libLIB.a
  1675.  
  1676. Thu Aug  3 20:42:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1677.  
  1678.     * job.c [HAVE_SYS_WAIT or not USG]: If WIFSIGNALED is not defined by
  1679.     <sys/wait.h>, define it as (WTERMSIG != 0).
  1680.  
  1681. Tue Aug  1 19:25:34 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1682.  
  1683.     * remake.c (remake_file): If FILE has no commands and is a target,
  1684.     don't set its time to now.  The time gets reset by notice_finished_file
  1685.     anyway, and it isn't needed since check_dep checks for nonexistence.
  1686.  
  1687.     * Version 3.54.6.
  1688.  
  1689.     * read.c (read_makefile): Don't read off the end of the string after an
  1690.     `include'.
  1691.  
  1692.     * job.c (exec_command): New function to search the path for a file and
  1693.     execute it.
  1694.     (start_job): Use exec_command rather than execvp.
  1695.  
  1696.     * read.c (read_makefile): Expand `include' directive args before
  1697.     parsing them.  Allow trailing whitespace after filename.
  1698.  
  1699.     * variable.c (target_environment): Put makelevel + 1, rather than
  1700.     makelevel, in the `MAKELEVEL' envariable.
  1701.  
  1702. Sat Jul 29 10:27:04 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1703.  
  1704.     * remake.c (notice_finished_file): Don't get the new modtime of phony
  1705.     files.
  1706.  
  1707.     * remake.c (remake_file): Run commands instead of touching under -t if
  1708.     FILE->cmds->any_recurse is set.
  1709.  
  1710.     * commands.h (struct commands): Add new member `any_recurse', to be set
  1711.     nonzero if any `lines_recurse' element is nonzero.
  1712.     * commands.c (chop_commands): Set the `any_recurse' member.
  1713.  
  1714.     * commands.c (execute_file_commands): Split chopping of commands into
  1715.     lines into new function chop_commands.
  1716.     * commands.h: Declare chop_commands.
  1717.  
  1718.     * read.c (read_makefile): Test for a line beginning with a tab after
  1719.     checking for conditional lines, but before all other checks.
  1720.  
  1721. Fri Jul 28 18:10:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1722.  
  1723.     * read.c (read_makefile): Match directives against collapsed line
  1724.     and use that for their args.
  1725.  
  1726.     * read.c (read_makefile): Warn about extra text after `include'.
  1727.  
  1728. Tue Jul 25 14:34:25 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1729.  
  1730.     * make.texinfo (Rules: Directory Search: Selective Search): Fixed
  1731.     example to use correct `vpath' syntax.
  1732.  
  1733. Mon Jul 24 12:10:58 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1734.  
  1735.     * Version 3.54.5.
  1736.  
  1737.     * job.c (start_job): In the child side, unblock SIGCHLD.
  1738.  
  1739. Fri Jul 21 18:25:59 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1740.  
  1741.     * make.h: Don't include <sys/types.h> #ifdef sun.
  1742.  
  1743. Mon Jul 17 14:29:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1744.  
  1745.     * implicit.c (pattern_search): If ar_name (FILENAME), don't check for
  1746.     directory names.
  1747.  
  1748.     * job.c (wait_for_children): Changed "waiting for children" message to
  1749.     "waiting for unfinished jobs".
  1750.  
  1751. Fri Jul 14 13:17:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1752.  
  1753.     * load.c (load_average): Use an unsigned offset into kmem.
  1754.  
  1755. Thu Jul 13 18:44:49 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1756.  
  1757.     * variable.c (pop_variable_scope): Don't free the head of the chain of
  1758.     variables in each bucket twice.
  1759.  
  1760. Tue Jul 11 06:45:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1761.  
  1762.     * GNUmakefile: Include COPYING in the doc tar file.
  1763.  
  1764.     * variable.c, read.c, misc.c, job.c, function.c: Replace some identical
  1765.     "for" loops with next_token or end_of_token calls.
  1766.  
  1767. Mon Jul 10 16:55:08 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1768.  
  1769.     * Version 3.54.4.
  1770.  
  1771.     * compatMakefile: Documented new conditionals.
  1772.  
  1773.     * job.c: Don't define sys_siglist if HAVE_SIGLIST is defined.
  1774.     Don't define dup2 if HAVE_DUP2 is defined.
  1775.  
  1776.     * job.c (child_handler): Interpret the return from start_job correctly.
  1777.  
  1778.     * remake.c (update_file_1): Don't write "target not remade because of
  1779.     errors" message under -n or -q.
  1780.  
  1781.     * read.c: Declare getpwnam.
  1782.  
  1783.     * glob.c: Use <dirent.h> if DIRENT is defined.
  1784.     [USG]: Don't declare memcpy, since <memory.h> does.
  1785.  
  1786. Fri Jul  7 20:53:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1787.  
  1788.     * misc.c (collapse_line): Copy the line over in the right place.
  1789.  
  1790. Fri Jul  7 18:33:24 1989  Roland McGrath    (fsf at void.ai.mit.edu)
  1791.  
  1792.     * remake.c: Conditionalize inclusion of <sys/file.h> on not
  1793.     USG, since HP-UX defines a `struct file' there.
  1794.  
  1795. Fri Jul  7 12:11:30 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1796.  
  1797.     * job.c: If WTERMSIG is defined by <sys/wait.h>, define WAIT_T as int,
  1798.     and don't define other macros; this covers HP-UX.
  1799.     If WTERMSIG is not defined, use int or union wait based on USG and
  1800.     HAVE_SYS_WAIT; this covers BSD and SysV.
  1801.  
  1802.     * Version 3.54.3 (alpha).
  1803.  
  1804.     * job.c [USG and not USGr3]: Include <errno.h> and declare errno.
  1805.  
  1806.     * job.c (unblock_children [USG]): Declare child_handler.
  1807.  
  1808.     * job.c: Renamed WRETCODE to WEXITSTATUS.
  1809.     [HAVE_SYS_WAIT or not USG]: Undefine WTERMSIG, WCOREDUMP, and
  1810.     WEXITSTATUS before defining them.  The HP-UX <sys/wait.h> defines them.
  1811.  
  1812.     * main.c (main): If there are no goals, fatal AFTER printing the data
  1813.     base under -p.
  1814.  
  1815. Thu Jul  6 22:43:33 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  1816.  
  1817.     * glob.c [USG]: #define rindex as strrchr.
  1818.  
  1819.     * job.c [USG]: Include <sys/param.h> and #define getdtablesize() as
  1820.     NOFILE.
  1821.  
  1822. Wed Jul  5 09:36:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1823.  
  1824.     * Version 3.54.2 (alpha).
  1825.  
  1826.     * expand.c (variable_expand): When expanding recursive variable
  1827.     references (${${a}}), use the correct delimiters in the constructed
  1828.     variable reference.
  1829.  
  1830. Mon Jul  3 18:29:26 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  1831.  
  1832.     * compatMakefile: Clear out and redefine the .SUFFIXES list because
  1833.     silly Sun 4 make defines .cps.h.
  1834.  
  1835.     * compatMakefile: Fix comment about -DNO_MINUS_C_MINUS_O.
  1836.  
  1837.     * remake.c: Include <sys/file.h> for O_* on 4.2.
  1838.  
  1839.     * commands.c: Define sigmask if it's not defined.
  1840.  
  1841. Fri Jun 30 07:33:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  1842.  
  1843.     * remake.c (remake_file): Don't always increment files_remade.
  1844.  
  1845.     * variable.c (push_new_variable_scope): Zero the new variable hash
  1846.     table.
  1847.  
  1848. Thu Jun 29 17:14:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1849.  
  1850.     * expand.c (variable_expand): When terminating the variable expansion
  1851.     buffer, use variable_buffer_output instead of a simply zero store,
  1852.     because the buffer may need to be enlarged.
  1853.  
  1854. Wed Jun 28 16:53:47 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1855.  
  1856.     * Version 3.54.
  1857.  
  1858.     * default.c (default_suffixes): Added `.ln'.
  1859.     (default_suffix_rules): Changed lint rules to use -C.
  1860.  
  1861. Thu Jun 22 20:49:35 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1862.  
  1863.     * job.c (start_job): Set `environ' to CHILD->environment before execing
  1864.     in the child process!
  1865.  
  1866. Tue Jun 20 17:23:13 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
  1867.  
  1868.     * compatMakefile: Put job.h and rule.h in `srcs'.
  1869.  
  1870.     * Version 3.53.
  1871.  
  1872. Mon Jun 19 16:25:18 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
  1873.  
  1874.     * job.c (start_job): If there are no more commands, return nonzero
  1875.     under -n or -t.
  1876.  
  1877.     * compatMakefile (make): Pass `-f' to mv.
  1878.  
  1879.     * GNUmakefile: If `ARCH' or `machine' is defined, make $(ARCH)/*.o and
  1880.     $(ARCH)/make instead of *.o and make.
  1881.  
  1882.     * function.c (string_glob): Don't try to use freed storage!
  1883.  
  1884.     * read.c (readline): If there is only one byte of space in the buffer,
  1885.     enlarge the buffer before reading more.
  1886.  
  1887.     * arscan.c [M_XENIX]: Miscellaneous minor changes for Xenix.
  1888.  
  1889. Sun Jun 18 13:07:45 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1890.  
  1891.     * GNUmakefile (depend): Split commands into two lines so they won't be
  1892.     so long when variable-expanded.
  1893.  
  1894.     * compatMakefile: Documented MINUS_C_MINUS_O meaning.  The line
  1895.     describing it got removed when the USG/wait stuff was documented.
  1896.  
  1897. Sat Jun 17 22:56:54 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  1898.  
  1899.     * Version 3.52.
  1900.  
  1901. Mon Jun 12 17:45:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1902.  
  1903.     * remake.c (check_dep): Drop circular dependencies instead of fataling.
  1904.     (update_file_1 already does this.)
  1905.  
  1906.     * default.c (default_suffix_rules): For .s -> .o, put the -o flag to
  1907.     the assembler before the source file name.
  1908.  
  1909. Sun Jun 11 12:00:52 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  1910.  
  1911.     * Version 3.51.
  1912.  
  1913.     * make.texinfo (Features): Noted 1003.2 requirement of `+' meaning.
  1914.  
  1915.     * file.c (remove_intermediates): If !SIG, write a single "rm" command
  1916.     line, listing all files.
  1917.  
  1918.     * read.c (read_makefile): Don't free the storage for the passed
  1919.     filename, since it might not be malloc'd.  When doing an included
  1920.     makefile, free the name's storage.
  1921.     (read_all_makefiles): Use variable_expand to find the value of
  1922.     `MAKEFILES'.  Free the storage for the names of -f makefiles.
  1923.     (read_makefile): Allocate storage for the makefile name in the
  1924.     `struct file' in read_makefiles.
  1925.  
  1926.     * make.texinfo (Running: Instead of Execution): Document the affect of
  1927.     + and $(MAKE)/${MAKE}.
  1928.  
  1929.     * make.texinfo (Functions: Foreach Function): Document that if the
  1930.     iteration variable was undefined before the `foreach' call, it will be
  1931.     undefined after the call.
  1932.  
  1933.     * commands.c: Split into commands.c, job.h, and job.c.
  1934.  
  1935.     * rule.c (try_implicit_rule, pattern_search): Moved to new file
  1936.     implicit.c.
  1937.  
  1938.     * rule.c: Split into rule.h, rule.c, and default.c.
  1939.     * default.c (install_default_pattern_rules): Renamed to
  1940.     install_default_implicit_rules.
  1941.     * make.h, main.c (main): Renamed uses.
  1942.  
  1943.     * make.c: Renamed to misc.c.
  1944.  
  1945.     * make.c (main, log_working_directory, decode_switches,
  1946.     decode_env_switches, define_makeflags, die, print_version,
  1947.     print_data_base): Moved to new file main.c.
  1948.  
  1949.     * commands.c (execute_file_commands): Don't collapse backslash-newlines
  1950.     here.  When chopping the commands up into lines, don't chop at
  1951.     backslash-newlines.
  1952.     (start_job): Collapse backslash-newlines after printing the line.
  1953.  
  1954.     * commands.c (start_job): Don't collapse backslash-newlines here.
  1955.     (execute_file_commands): Collapse backslash-newlines before chopping
  1956.     the commands up into lines.
  1957.  
  1958.     * commands.c (set_file_variables): Initialize the length counters for
  1959.     $^ and $? to zero!
  1960.  
  1961.     * commands.c (start_job): Use vfork instead of fork.  Someone else says
  1962.     the child and parent DO have separate file descriptors.
  1963.  
  1964.     * variable.c: Split internals into variable.c, function expansion into
  1965.     function.c, and variable expansion into expand.c.
  1966.     * function.c (handle_function): New function to check for a function
  1967.     invocation and expand it.
  1968.     * expand.c (variable_expand): Use handle_function.
  1969.     * variable.c (push_new_variable_scope): New function to push a new
  1970.     empty variable set onto the current setlist.
  1971.     (pop_variable_scope): New function to pop the topmost set from the
  1972.     current setlist and free its storage.
  1973.     * function.c (expand_function: `foreach'): Push a new variable scope
  1974.     for the iteration variable and pop the scope when finished.
  1975.     * variable.h: Declare new functions.
  1976.     * variable.c (initialize_variable_output): New function to return a
  1977.     pointer to the beginning of the output buffer.
  1978.     (save_variable_output): New function to save the variable output state.
  1979.     (restore_variable_output): New function to restore it.
  1980.     * expand.c (variable_expand): Use initialize_variable_output.
  1981.     (allocated_variable_expand): Use {save,restore}_variable_output.
  1982.     * variable.c (current_setlist): Renamed to current_variable_set_list
  1983.     and made global.
  1984.  
  1985. Sat Jun 10 00:11:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  1986.  
  1987.     * remake.c (library_file_mtime): Check for libNAME.a in the current
  1988.     directory before doing VPATH search.
  1989.  
  1990.     * variable.c (print_variable_set): Don't write "# Variables", and write
  1991.     fewer blank lines.
  1992.     (print_variable_data_base): Precede the variables with "# Variables".
  1993.  
  1994.     * make.c (main): Print the data base under -p after doing everything
  1995.     else, just before exitting.  This way it gets info determined in
  1996.     updating the goal targets.
  1997.  
  1998.     * variable.c (print_variable_data_base): Split into print_variable,
  1999.     which prints one variable, and print_variable_set, which prints a set.
  2000.     Replaced with a call to print_variable_set for the global set.
  2001.     (print_file_variables): New function to print a given file's local
  2002.     variables.
  2003.  
  2004.     * file.c (print_file_data_base): Call print_file_variables to print
  2005.     each file's local variables.
  2006.  
  2007.     * commands.c (set_file_variables): Actually define the values for
  2008.     the $^ and $? variables!!!
  2009.  
  2010.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document new D and
  2011.     F versions of $^ and $?.
  2012.  
  2013.     * commands.c (start_job): In the child fork, use getdtablesize and a
  2014.     loop to close all file descriptors other than 0, 1, and 2.  We need to
  2015.     do this since not only the bad stdin pipe, but also some directories,
  2016.     may be open.
  2017.  
  2018.     * commands.c (start_job): Use fork instead of vfork, because a vfork
  2019.     parent and child share file descriptors, and our child needs to diddle
  2020.     with stdin.
  2021.  
  2022.     * variable.c (initialize_file_variables): When created a new variable
  2023.     set, zero out the hash table.
  2024.  
  2025.     * variable.c (target_environment): Don't use variables whose names are
  2026.     not made up of alphanumerics and underscores.
  2027.  
  2028.     * remake.c (update_file_1): Set the `parent' member of each dependency
  2029.     to FILE before updating it.
  2030.  
  2031.     * file.h (struct file): Add `parent' member.
  2032.  
  2033.     * variable.c (initialize_file_variables): Don't take second arg PARENT.
  2034.     Use FILE->parent instead.  If FILE->parent->variables is nil, recurse
  2035.     to initialize it.
  2036.  
  2037.     * variable.h: Declare {allocated_}variable_expand_for_file.
  2038.  
  2039.     * variable.c (allocated_variable_expand): Now
  2040.     allocated_variable_expand_for_file, calling variable_expand_for_file,
  2041.     and taking second arg FILE.
  2042.     (allocated_variable_expand): New function, a wrapper around
  2043.     allocated_variable_expand_for_file, passing a nil second arg.
  2044.  
  2045. Fri Jun  9 12:11:45 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2046.  
  2047.     * commands.c (start_job): On the child side of the fork, always close
  2048.     the bad stdin file descriptor.
  2049.  
  2050.     * commands.c (struct child): New member `environment', to hold the
  2051.     environment for the child.
  2052.     (execute_file_commands): Set the new childs `environment' member to nil
  2053.     before calling start_job.
  2054.     (start_job): Set up CHILD->environment before running the commands if
  2055.     it is nil.
  2056.  
  2057.     * make.c (main): Don't call new_environ.  `shell' functions will now be
  2058.     run with the environment make was called with.
  2059.  
  2060.     * commands.c (child_handler): Don't check C->command_ptr before calling
  2061.     start_job since we now have to check C->file->cmds->command_lines and
  2062.     it's easier to let start_job handle all that.
  2063.  
  2064.     * commands.c (struct child): New member `command_line', to hold an
  2065.     index into file->cmds->command_lines.
  2066.     (execute_file_commands): Set the new child's `command_line' to 0 and
  2067.     its `commands' and `commands_ptr' to nil.
  2068.     (start_job): When CHILD->command_ptr runs out, increment
  2069.     CHILD->command_line and run the corresponding line from
  2070.     CHILD->file->cmds->command_lines.  Run it even under -t, -q, or -n if
  2071.     the CHILD->file->cmds->lines_recurse element for that line is set.
  2072.  
  2073.     * commands.c (execute_file_commands): Chop CMDS up into lines, setting
  2074.     its `command_lines' and `lines_recurse' members, if it wasn't already
  2075.     chopped.
  2076.  
  2077.     * commands.h (struct commands): New members `command_lines' and
  2078.     `lines_recurse'.  The first is an array of chopped-up lines; the second
  2079.     is an array of flags, each nonzero if the corresponding line is
  2080.     recursive.
  2081.  
  2082.     * variable.c (variable_expand_for_file): If FILE is nil, just do a
  2083.     vanilla variable_expand.
  2084.     (expand_function: `shell'): Pass second arg (as nil) to
  2085.     construct_command_argv.
  2086.  
  2087.     * commands.c (construct_command_argv): Use variable_expand_for_file on
  2088.     `$(SHELL)' and `$(IFS)' instead of lookup_variable to check those
  2089.     variables.  This handles file-local and recursive values correctly.
  2090.     To support this, take an additional argument FILE.
  2091.  
  2092.     * variable.c (initialize_file_variables): New function to initialize
  2093.     FILE's variable set list from PARENT's setlist.  PARENT is the
  2094.     immediate dependent that caused FILE to be remade, or nil if FILE is a
  2095.     goal.  (When user-level per-file variables are implemented, PARENT
  2096.     should be passed as nil when defining per-file variables.)
  2097.  
  2098.     * variable.c (variable_expand_for_file): New function to expand a line
  2099.     using the variable set of a given file, and reporting error messages
  2100.     for the file and line number of that file's commands.
  2101.  
  2102.     * variable.h: Don't declare lookup_variable_for_file.
  2103.  
  2104.     * variable.c (lookup_variable_*): Turned back into lookup_variable.  It
  2105.     now uses current_setlist.
  2106.     (global_setlist): New static `struct variable_set_list', a setlist
  2107.     containing global_variable_set.
  2108.     (current_setlist): New static `struct variable_set_list *', a pointer
  2109.     to the current variable set list.
  2110.     (define_variable): Define in the current top-level set, not the global
  2111.     set.
  2112.  
  2113.     * commands.c (set_file_variables): New function to set up the automatic
  2114.     variables for a file in its own variable set.
  2115.     (execute_file_commands): Use set_file_variables.
  2116.  
  2117.     * variable.c (new_environ): Replaced with target_environment, taking an
  2118.     argument FILE, and returning an environment for FILE's commands.
  2119.  
  2120.     * variable.c, variable.h: Remove all global special variable pointers.
  2121.  
  2122.     * variable.c (define_variable_for_file): New function like
  2123.     define_variable, but takes additional arg FILE, and defines the
  2124.     variable in the variable set at the top of FILE's chain.
  2125.     (lookup_variable_for_file): New function like lookup_variable, but
  2126.     takes additional arg FILE, and looks the variable up in all of FILE's
  2127.     variable sets.
  2128.  
  2129.     * file.h (struct file): New member `variables', a `struct
  2130.     variable_set_list' containing the list of variable sets used in the
  2131.     expansion of the file's commands.
  2132.  
  2133.     * variable.c (variables): Replaced with static `struct variable_set'
  2134.     global_variable_set.
  2135.     (define_variable): Now define_variable_in_set, taking additional
  2136.     argument SET, the `struct variable_set' to define it in.
  2137.     (define_variable): Use define_variable_in_set with global_variable_set.
  2138.     (lookup_variable): Now lookup_variable_in_set, taking additional
  2139.     argument SET, the `struct variable_set' to look it up in.
  2140.     (lookup_variable): Use lookup_variable_in_set with global_variable_set.
  2141.     (lookup_variable_in_setlist): New function to look up a variable in a
  2142.     `struct variable_set_list' using lookup_variable_in_set.
  2143.  
  2144.     * variable.h (struct variable_set): New structure, containing a hash
  2145.     table and the number of hash buckets.
  2146.     (struct variable_set_list): New structure, containing a link for a
  2147.     linked-list, and a `struct variable_set'.
  2148.  
  2149.     * commands.c (start_job): Under -n, return what the recursive start_job
  2150.     call returns, since it might actually start a child.
  2151.  
  2152.     * make.texinfo (Rules: Wildcards): Document ~ and ~USER expansion.
  2153.  
  2154.     * commands.c (execute_file_commands): If start_job returns
  2155.     failure, but -t is set, set FILE->update_status to success.
  2156.     (start_job): If -t is set, and the commands are not recursive, return
  2157.     failure (is is done for -q).
  2158.  
  2159.     * remake.c (touch_file): New function to touch FILE.
  2160.     (remake_file): Use touch_file.  When touching a file, still do
  2161.     execute_file_commands.
  2162.  
  2163.     * remake.c (remake_file): Don't check question_flag (-q), since we
  2164.     can't know here if the commands are recursive.
  2165.  
  2166.     * commands.c (start_job): Don't use the `recursive' member of
  2167.     CHILD->file->cmds.  Instead, check for leading +s and $(MAKE) or
  2168.     ${MAKE} in the command line here.
  2169.  
  2170.     * commands.h (struct commands): Remove `recursive' member.
  2171.  
  2172.     * rule.c (install_default_pattern_rules): Remove use of `recursive'
  2173.     member.
  2174.  
  2175.     * read.c (record_files): Don't check commands from $(MAKE) and set
  2176.     their `recursive' member.
  2177.  
  2178.     * commands.c (fatal_error_signal): Treat SIGQUIT like SIGINT, SIGHUP,
  2179.     and SIGTERM, but don't send it to ourselves because it will cause a
  2180.     core dump.
  2181.  
  2182. Thu Jun  8 20:30:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2183.  
  2184.     * Version 3.50.
  2185.  
  2186.     * variable.c (variable_expand): Use allocated_variable_expand instead
  2187.     of expand_argument in a few places.
  2188.  
  2189.     * variable.c (allocated_variable_expand): Do static variable shuffling
  2190.     here instead of using expand_argument.
  2191.     (expand_argument): Use allocated_variable_expand.
  2192.  
  2193.     * variable.c (recursively_expand): New function to recursively expand
  2194.     its argument (a `struct variable'), returning the malloc'd value.
  2195.     (variable_expand): Use recursively_expand.
  2196.  
  2197. Sun May 28 12:49:27 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2198.  
  2199.     * make.c (main): Fixed buggy fix in deciding to increase space for
  2200.     command-line variable definitions.  (First it never did it, then it
  2201.     always did it; now it does it when necessary.)
  2202.  
  2203. Sat May 27 14:01:54 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  2204.  
  2205.     * make.c (main): Fixed bug in deciding to increase space for
  2206.     command-line variable definitions.
  2207.  
  2208. Fri May 26 15:48:01 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2209.  
  2210.     * read.c (multi_glob): Use allocated_expand_variable for checking
  2211.     `HOME' variable for ~ expansion, since this may be called from inside a
  2212.     `wildcard' function expansion.
  2213.  
  2214.     * variable.h: Declare allocated_expand_variable.
  2215.  
  2216.     * variable.c (allocated_expand_variable): New function to do variable
  2217.     expansion in an allocated buffer, rather than the static one.
  2218.  
  2219.     * make.c (main): Don't set glob_tilde (it no longer exists).
  2220.  
  2221.     * variable.c (string_glob): Use multi_glob and parse_file_seq.
  2222.  
  2223.     * read.c (multi_glob): Do ~ expansion here.
  2224.  
  2225.     * glob.c (glob_tilde, glob_filename): Removed ~ expansion.
  2226.  
  2227.     * variable.c (define_variable, lookup_variable): Use a smarter hashing
  2228.     algorithm (the same one used for files and directories).
  2229.     (VARIABLE_BUCKETS): Increased to 523.
  2230.  
  2231.     * file.c (enter_file, lookup_file, rename_file): Use a smarter hashing
  2232.     algorithm, spreading the bits about somewhat.
  2233.  
  2234.     * make.c (log_working_directory): Under `-p', precede the directory
  2235.     message with a `#'.
  2236.  
  2237.     * make.c (print_version): Under `-p', precede each line with a `#'.
  2238.     (print_data_base): Precede the header line with a `#' and include the
  2239.     date and time on it.
  2240.  
  2241.     * vpath.c (print_vpath_data_base): Precede non-directive
  2242.     lines with `#'s.
  2243.  
  2244.     * commands.c (print_commands): Precede the non-command line with a `#'.
  2245.  
  2246.     * rule.c (print_rule_data_base), file.c (print_file_data_base): Precede
  2247.     non-rule lines with `#'s.
  2248.  
  2249.     * dir.c (print_dir_data_base): Precede all lines with `#'s.
  2250.  
  2251.     * variable.c (print_variable_data_base): Changed format so that it can
  2252.     be makefile input.  Lines that are not variable definitions are
  2253.     preceded with `#'.  Nonrecursive variable definitions are made with all
  2254.     dollar signs doubled to reproduce the initial value.  Recursive
  2255.     variable definitions containing newlines are done with `define'
  2256.     directives.  Nonrecursive variable definitions containing newlines, and
  2257.     variable names containing :, =, or newlines, will come out garbled.
  2258.  
  2259. Wed May 24 00:20:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2260.  
  2261.     * Version 3.49.
  2262.  
  2263. Tue May 23 19:18:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2264.  
  2265.     * variable.c (expand_function: `filter'/`filter-out'): Use
  2266.     find_percent instead of pattern_p.
  2267.  
  2268.     * variable.c (expand_function: `patsubst'): Pass new args (both nil)
  2269.     to patsubst_expand.
  2270.     (variable_expand): For $(var:pat%=rep%) references, pass new args to
  2271.     patsubst_expand so as to avoid find_percent and thus disallow
  2272.     quoting the %s.
  2273.  
  2274.     * read.c (record_files): Pass new args to patsubst_expand.
  2275.  
  2276.     * variable.c (patsubst_expand): Take two new args: PATTERN_PERCENT
  2277.     and REPLACE_PERCENT.  Each of these, if non-nil, means that PATTERN
  2278.     (or REPLACE) has already been run through find_percent, and
  2279.     PATTERN_PERCENT (or REPLACE_PERCENT) is the result.
  2280.  
  2281.     * make.h: Declare find_percent instead of pattern_p.
  2282.  
  2283.     * read.c (pattern_p): Changed to find_percent, returning a pointer
  2284.     to the %, or nil if there is none.
  2285.     (record_files): Take another arg, PATTERN_PERCENT, a pointer to the
  2286.     % in PATTERN.
  2287.     (read_makefile): Pass PATTERN_PERCENT to record_files.
  2288.  
  2289.     * make.texinfo (Rules: Static Pattern: Static Usage,
  2290.     Rules: Directory Search: Selective Search,
  2291.     Functions: Text Functions): Documented that `%' can be quoted.
  2292.  
  2293.     * variable.c (expand_function: `filter'/`filter-out'): Use pattern_p
  2294.     to allow quoted %s in patterns.
  2295.  
  2296.     * variable.c (patsubst_expand): Use pattern_p on PATTERN and REPLACE
  2297.     to allow quoted %s.  Quoting backslashes are removed from REPLACE
  2298.     even if PATTERN contains no unquoted %.
  2299.  
  2300.     * read.c (pattern_p): Made global.
  2301.     * make.h: Declare pattern_p.
  2302.  
  2303.     * read.c (pattern_p): New function to search for an unquoted % in a
  2304.     string.  Backslashes quote %s and backslashes.  Quoting backslashes
  2305.     are removed from the string by compacting it into itself.  Returns
  2306.     nonzero if an unquoted % was found, zero if not.
  2307.     (record_files): Use pattern_p to check for implicit rules.
  2308.     (read_makefile): Use pattern_p to check for static pattern rules.
  2309.     Also use it to allow quoted %s in `vpath' patterns; warn about
  2310.     `vpath' patterns with no %s.
  2311.  
  2312. Mon May 22 16:31:52 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2313.  
  2314.     * glob.c (glob_filename): Replace a `1' with the `l' that should
  2315.     have been there.  This incidentally stops it from dumping core.
  2316.  
  2317.     * glob.c (glob_filename): If the path is just a directory, with no
  2318.     file name pattern, return the directory alone.
  2319.  
  2320.     * glob.c (glob_tilde): New global variable (int), defaults to zero.
  2321.     (glob_filename): If glob_tilde is nonzero, expand ~ or ~USER.
  2322.  
  2323.     * variable.c (string_glob): Keep a static allocated buffer for file
  2324.     names taken from the list, instead of allocating and freeing one
  2325.     every time.
  2326.  
  2327. Fri May 19 18:06:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2328.  
  2329.     * make.c (decode_switches): Get floating numbers from the right string.
  2330.  
  2331. Sun May 14 13:48:04 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2332.  
  2333.     * commands.c (delete_child_targets): When deleting `also_make'
  2334.     files, include the target's name in the message:
  2335.         make: *** [foo] Deleting file `bar'
  2336.  
  2337. Sat May 13 17:34:26 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2338.  
  2339.     * make.c (max_load_average, default_load_average): Default to -1.
  2340.  
  2341.     * load.c (wait_to_start_job): Return if max_load_average is < 0.0,
  2342.     not equal.
  2343.  
  2344. Fri May 12 16:08:05 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2345.  
  2346.     * variable.c (variable_buffer_output): Don't try to do pointer
  2347.     arithmetic between objects not in the same array.
  2348.  
  2349. Wed May 10 15:55:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2350.  
  2351.     * rule.c [M_XENIX] (default_suffix_rules, default_variables): Minor
  2352.     changes to allow for strange compiler syntax.
  2353.  
  2354.     * rule.c (default_variables): Don't include "> $@" in
  2355.     $(PREPROCESS.S), since it's already in the .S.s rule.
  2356.  
  2357.     * file.c (enter_file): Make a new double-colon file the `prev'
  2358.     member of the bottom `prev' file (the one whose `prev' is nil).
  2359.  
  2360.     * read.c (do_define): Append newlines after copying the lines into
  2361.     the value buffer, so we end up with a trailing newline.
  2362.  
  2363.     * make.c (print_version): If the global variable
  2364.     `remote_description' is not nil or "", append "-%s" (its value) to
  2365.     the version number.
  2366.     * remote-*.c: Define remote_description appropriately.
  2367.  
  2368. Sun May  7 15:15:53 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2369.  
  2370.     * commands.c (error_status): Converted to new function child_error,
  2371.     taking new arguments TARGET_NAME and IGNORED, and writing an error
  2372.     message: "*** [target] Error 1" (or signal #, etc.), appending
  2373.     " (ignored)" if IGNORED is nonzero.
  2374.     (child_handler): Use child_error instead of error_status.
  2375.  
  2376.     * compatMakefile (all): Don't depend on `doc'.
  2377.  
  2378.     * compatMakefile (clean): Don't remove make-info*.
  2379.     (realclean): New rule, depends on `clean', removes tags, TAGS,
  2380.     and all Info and TeX files.
  2381.  
  2382. Thu May  4 17:00:46 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2383.  
  2384.     * variable.c (print_variable_data_base), file.c
  2385.     (print_file_data_base), rule.c (print_rule_data_base),
  2386.     Use floating-point for averages and percentages.
  2387.  
  2388.     * make.c (print_data_base): Print messages before and after the data
  2389.     base information.
  2390.  
  2391.     * commands.c (print_commands): Changed output format to separate
  2392.     lines in commands and prefix them with tabs.
  2393.  
  2394.     * dir.c (print_dir_data_base): Changed output format slightly.
  2395.  
  2396.     * vpath.c (struct vpath, construct_vpath_list,
  2397.     selective_vpath_search): Remove the `exists' member and its uses.
  2398.  
  2399.     * vpath.c (print_vpath_data_base): New function to print all
  2400.     selective and general VPATH search paths (for -p).
  2401.  
  2402.     * make.c (print_data_base): Call print_vpath_data_base.
  2403.  
  2404.     * file.c (print_file_data_base): Changed format to look more like a
  2405.     makefile rule.  Now reports all information in the `struct file'.
  2406.  
  2407.     * rule.c (print_rule_data_base): Changed format of display from:
  2408.       %: (terminal)
  2409.        depends on: RCS/%,v
  2410.     to:
  2411.       %: RCS/%,v
  2412.         is terminal.
  2413.         references nonexistent subdirectory.
  2414.     Also include number and percent that refer to nonexistent
  2415.     subdirectories.
  2416.  
  2417. Thu Apr 27 15:45:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2418.  
  2419.     * make.c (main): Figure out the level of recursion before writing
  2420.     the `Entering directory' message.
  2421.     * variable.c (define_automatic_variables): Don't figure out the
  2422.     level of recursion from `MAKELEVEL'.  It's now done in main.
  2423.  
  2424.     * Version 3.48.
  2425.  
  2426. Wed Apr 26 16:39:17 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2427.  
  2428.     * commands.c (child_handler): Set `update_status' to zero when there
  2429.     are no more commands.
  2430.  
  2431.     * make.c (log_working_directory): If MAKELEVEL > 0, indicate the
  2432.     recurson in the message (make[1]: ...).
  2433.  
  2434.     * commands.c (child_handler): Change status to `cs_finished' when
  2435.     commands fail.
  2436.  
  2437.     * commands.c (start_job): Return 0 (success) if there were no more
  2438.     commands for the child.
  2439.     (child_handler): Change the status to `cs_finished' when start_job
  2440.     fails to start the commands.
  2441.  
  2442.     * make.c (main): Don't handle SIGEMT if it's not defined.
  2443.     Do handle SIGDANGER if it is defined.
  2444.  
  2445.     * commands.c (child_handler): Reorganized inner loop so that it
  2446.     doesn't try to inspect the child before finding it.
  2447.  
  2448. Tue Apr 25 16:28:24 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2449.  
  2450.     * make.c (end_of_token): Fixed bug wherein backslashes caused
  2451.     immediate return.
  2452.  
  2453.     * Version 3.47.
  2454.  
  2455.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document
  2456.     setting of `$*' for explicit rules.  Add note clarifying that
  2457.     automatic variables, though referred to in the documentation as
  2458.     `$<', etc. are no different than `$(<)', etc.
  2459.  
  2460. Fri Apr 21 18:00:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2461.  
  2462.     * file.c (enter_file): Don't strip leading `./'s.
  2463.  
  2464.     * read.c (parse_file_seq): Strip leading `./'s.
  2465.  
  2466. Thu Apr 13 17:26:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2467.  
  2468.     * make.texinfo (Commands: Parallel, Running: Options): Document that
  2469.     -l with no argument removes a previous load limit.
  2470.  
  2471.     * make.c (struct command_switch): New member `default_value'.
  2472.     (default_job_slots): Default value (of 1) for -j.
  2473.     (default_load_average): Default value (of 0, unlimited) for -l.
  2474.     (command_switches): Use default values for -j and -l.
  2475.     Also, -l without an arg now means no load limit.
  2476.     (define_makeflags): Don't write positive_int or floating options
  2477.     whose values are their defaults.
  2478.  
  2479.     * make.c (main): Under -w, write a `Leaving directory' message
  2480.     before re-execing.
  2481.  
  2482. Tue Apr 11 16:46:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2483.  
  2484.     * Version 3.46.
  2485.  
  2486.     * Makefile: Provide an easy place for system-specific definitions
  2487.     (-DUSG, etc.) and extra object files (for whatever).
  2488.  
  2489.     * make.texinfo: Miscellaneous fixes from RMS.
  2490.  
  2491. Mon Apr 10 19:31:34 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2492.  
  2493.     * rule.c (pattern_search): Put rules with `subdir' flags set in
  2494.     TRYRULES, since these might be valid with VPATHs.  In the TRYRULES
  2495.     loop, don't do lookup_file or file_exists_p calls for dependencies
  2496.     of rules with `subdir' flags set, but still do vpath_search calls
  2497.     and intermediate-file searches.
  2498.  
  2499. Thu Apr  6 16:33:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2500.  
  2501.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document the
  2502.     new definition of $* for explicit rules.
  2503.  
  2504.     * commands.c (execute_file_commands): If FILE->stem is nil, figure
  2505.     out if FILE->name ends in a suffix in the .SUFFIXES list; if so,
  2506.     store the name sans suffix in FILE->stem (and $*).
  2507.  
  2508. Wed Apr  5 15:24:48 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  2509.  
  2510.     * file.c (remove_intermediates): Don't use `file_exists_p' to check
  2511.     for the existence of intermediate files, because the hashed
  2512.     directories will probably be out of date.
  2513.  
  2514.     * commands.c (child_handler): Free the good stdin before running the
  2515.     next command line.
  2516.  
  2517.     * commands.c [USG] (init_siglist): Don't case SIGEMT if it's not
  2518.     defined.  Do case SIGDANGER (for IBM RT) if it is defined.
  2519.  
  2520.     * commands.c: Changed `SYS_WAIT' to `HAVE_SYS_WAIT'.
  2521.     (child_handler): Use `wait3' if HAVE_SYS_WAIT is #defined.
  2522.  
  2523.     * file.c (enter_file): If any `./'s are stripped off, allocate a new
  2524.     copy of the shortened name.
  2525.  
  2526.     * rule.c (pattern_search): Allocate the right length strings for
  2527.     `also_make' members.
  2528.  
  2529. Sat Apr  1 13:28:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2530.  
  2531.     * Version 3.45.
  2532.  
  2533.     * GNUmakefile: Make a separate tarfile of the DVI and info files.
  2534.  
  2535.     * make.c (define_makeflags): If a switch that takes an argument has
  2536.     its default value, put the switch in MAKEFLAGS with no arguments.
  2537.  
  2538.     * make.c (command_switches): Pass `-l' in MAKEFLAGS.
  2539.  
  2540. Wed Mar 29 17:50:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2541.  
  2542.     * GNUmakefile: Don't include the DVI and info files in the dist.
  2543.  
  2544.     * commands.c (child_handler): Don't call
  2545.     check_changed_{directories,vpaths}.
  2546.  
  2547.     * make.h: Don't declare check_changed_{directories,vpaths}.
  2548.  
  2549.     * vpath.c (check_changed_vpaths): Removed this function.
  2550.  
  2551.     * dir.c (struct directory): Remove `modtime' member.
  2552.     (find_directory): Don't set `modtime' member.
  2553.     (check_changed_directories): Removed this function.
  2554.  
  2555.     * remake.c (update_file_1): Set FILE->command_state to cs_finished
  2556.     if it didn't need to be remade.
  2557.  
  2558.     * remake.c (update_file): Only write the "up to date" message if the
  2559.     target when from `not_started' state to `finished' state without
  2560.     incrementing the count of files remade.
  2561.  
  2562.     * commands.c [USG] (init_siglist): If both SIGCHLD and SIGCLD are
  2563.     defined, don't put them both in the `switch'.
  2564.  
  2565. Tue Mar 28 15:37:02 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2566.  
  2567.     * file.c (rename_file): Change FILE's name!!!
  2568.  
  2569.     * rule.c (create_pattern_rule): Set the `terminal' member of the new
  2570.     rule after calling new_pattern_rule, which zeros it.
  2571.  
  2572.     * rule.c (default_variables): Use $(C++) in $(COMPILE.cc)!
  2573.  
  2574. Sun Mar 26 15:52:30 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2575.  
  2576.     * Makefile: Added a `clean' target.
  2577.  
  2578. Fri Mar 24 15:08:46 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  2579.  
  2580.     * Version 3.44.
  2581.  
  2582.     * file.c (rename_file): If a `struct file' for the renamed-to name
  2583.     exists, and it is a target or has deps or commands, barf.
  2584.     If not just remove the old one for put in the new one.
  2585.  
  2586.     * remake.c (update_file_1, check_dep): Changed it back so that equal
  2587.     modtimes to NOT make dependencies be considered newer.  RCS checks
  2588.     out files with equal modtimes as the RCS files, so this screws it.
  2589.  
  2590.     * make.h, glob.c: If __GNUC__ is defined, use __builtin_alloca.
  2591.  
  2592.     * Makefile: Use variables `ALLOCA' and `ALLOCASRC' so systems
  2593.     without a good standard alloca can get it from the Emacs
  2594.     distribution (or somewhere).
  2595.  
  2596.     * dir.c: Don't include <sys/stat.h>, since make.h does.
  2597.  
  2598.     * make.c: Removed debugging version of getwd.
  2599.  
  2600. Thu Mar 23 16:16:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2601.  
  2602.     * Version 3.43.
  2603.  
  2604.     * remake.c (update_file_1): If a dependency loop is found, don't
  2605.     fatal.  Emit an error message and remove the dependency.
  2606.  
  2607.     * remake.c (library_file_mtime): Fixed to use the right names.
  2608.     (update_file_1, check_dep): Consider a dependency "newer" than its
  2609.     dependent if they have the same modification time.
  2610.  
  2611. Wed Mar 22 19:31:35 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2612.  
  2613.     * file.c (remove_intermediates): Don't try to remove nonexistent files.
  2614.  
  2615. Mon Mar 20 10:21:22 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2616.  
  2617.     * Version 3.42.
  2618.  
  2619.     * rule.c (default_variables): Set F77 to $(FC) and F77FLAGS to
  2620.     $(FFLAGS) so explicit rules expecting these (which are in System V)
  2621.     will work.  However, there is no way to make setting these affect
  2622.     the implicit rules, unless we trash FC and FFLAGS (which BSD uses).
  2623.     [USG]: Set GET to `get' rather than `/usr/sccs/get'.
  2624.  
  2625. Sun Mar 19 20:00:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2626.  
  2627.     * vpath.c (construct_vpath_list): Don't replace VPATH[ELEM] with
  2628.     dir_name (V), because the latter may get freed.
  2629.  
  2630. Sat Mar 18 15:01:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2631.  
  2632.     * Version 3.41.
  2633.  
  2634.     * make.texinfo: Cleaned-up edition 0.1 Beta from RMS and Bob Chassell.
  2635.  
  2636.     * file.c (rename_file): If a file with the new name already existed,
  2637.     use the same storage space, after freeing the old file's name, deps,
  2638.     and `also_make' member, preserving the link in the chain.
  2639.     Also write an error message telling the user to report the incident;
  2640.     I don't think this should be able to happen, but I'm not sure.
  2641.  
  2642.     * file.c (rename_file): Don't add the hash values of the old and new
  2643.     names together!  Reset HASHVAL before computing the second value.
  2644.  
  2645.     * dir.c (check_changed_directories): Zero the new file hash table
  2646.     after allocating it.
  2647.  
  2648.     * dir.c (dir_file_exists_p): If FILENAME is "", return 1 if the
  2649.     directory exists.
  2650.  
  2651.     * vpath.c (check_changed_vpaths): New function to run through the
  2652.     search paths of all VPATHs, making the `exists' members correspond
  2653.     to reality.
  2654.  
  2655.     * commands.c (child_handler): Call check_changed_vpaths.
  2656.  
  2657.     * make.h: Declare check_changed_vpaths.
  2658.  
  2659.     * vpath.c (struct vpath): New element `exists', an array of char
  2660.     flags; exists[N] is nonzero if searchpath[N] exists.
  2661.     (construct_vpath_list): Set the `exists' member.
  2662.     (selective_vpath_search): Don't search directories whose `exists'
  2663.     elements are zero.
  2664.  
  2665.     * read.c (read_makefile): Set the `dontcare' flag of makefiles
  2666.     from the MAKEFILES variable if they were not mentioned anywhere but
  2667.     in the MAKEFILES variable.
  2668.  
  2669.     * read.c (read_makefile): Don't write an error message if fopen
  2670.     fails for a makefile from the MAKEFILES variable.
  2671.  
  2672.     * dir.c (struct directory): Add `modtime' member to record the
  2673.     modification time of the directory when it was opened.
  2674.     (check_changed_directories): New function to check all known
  2675.     directories; if their modtimes have changed since they were opened,
  2676.     their file tables are cleared and they are reset to be read in.
  2677.  
  2678.     * commands.c (child_handler): Call check_changed_directories before
  2679.     returning.
  2680.     make.h: Declare check_changed_directories.
  2681.  
  2682. Tue Mar 14 20:07:13 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2683.  
  2684.     * Version 3.40.
  2685.  
  2686.     * make.c (print_version): Made the copyright say 1988, 1989.
  2687.  
  2688.     * read.c (read_all_makefiles): Don't set *MAKEFILES to the name of
  2689.     the end of the read_makefiles chain, since the latter may be from an
  2690.     included makefile.  (Why did I do this before?)
  2691.  
  2692.     * make.c (main): Set argv[0] to "" if it was nil.  Don't put the
  2693.     command-line variable definitions into argv[0], only into the MAKE
  2694.     variable!
  2695.  
  2696. Sun Mar  5 20:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2697.  
  2698.     * ar.c (ar_member_date, ar_touch): Remove the trailing ) from the
  2699.     member name.
  2700.  
  2701. Fri Mar  3 18:15:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2702.  
  2703.     * commands.c (construct_command_argv): Initialize NEW_ARGV to 0.  At
  2704.     `slow' label, if NEW_ARGV is not 0, free it; then allocate 4 strings.
  2705.  
  2706. Tue Feb 28 14:29:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2707.  
  2708.     * Version 3.39.
  2709.  
  2710.     * COPYING, make.texinfo: New GNU General Public License, version 1.
  2711.  
  2712.     * *.c, *.h, Makefile: New copyright notices for the new GNU General
  2713.     Public License, version 1.
  2714.  
  2715.     * commands.c [USG]: Define WRETCODE correctly (again).
  2716.  
  2717.     * variable.c (expand_function: `shell'): Don't capture the standard
  2718.     error output of the shell command.
  2719.  
  2720.     * ar.c (ar_touch, ar_member_date): Allocate MEMNAME with the right
  2721.     length.
  2722.  
  2723.     * load.c [not UMAX] (load_average): Don't clobber the first nlist
  2724.     member when trying to set the second!
  2725.  
  2726. Thu Feb 23 13:13:53 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2727.  
  2728.     * commands.c (child_handler): Really ignore errors under -i and for
  2729.     - lines, don't just print a different message.
  2730.  
  2731.     * make.c (decode_switches): Fixed handling of arguments (or lack
  2732.     thereof) to switches.
  2733.  
  2734. Wed Feb 22 16:25:39 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2735.  
  2736.     * commands.c (construct_command_argv): Don't clobber LINE when
  2737.     checking the IFS variable.
  2738.  
  2739. Sun Feb 19 11:17:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2740.  
  2741.     * load.c [UMAX, not NO_LDAV] (load_average): Return 0.0 rather than
  2742.     randomness when calls fail.
  2743.  
  2744.     * Version 3.38.
  2745.  
  2746.     * commands.c (fatal_error_signal): If handling a user kill signal
  2747.     (TERM, INT, HUP), wait for the children without printing the
  2748.     "Waiting for children" message, since they will die quickly.
  2749.  
  2750.     * Version 3.37.
  2751.  
  2752.     * remote-stub.c (remote_status): Take another arg, BLOCK.  If this
  2753.     is nonzero block waiting for remote children.  If not, return 0 if
  2754.     we would have to block.
  2755.  
  2756.     * commands.c (child_handler) [not USG]: If called as a signal
  2757.     handler, use wait3 and don't block.
  2758.     [USG]: If called as a signal handler, return after handling one child.
  2759.  
  2760. Sat Feb 18 13:37:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2761.  
  2762.     * file.c (snap_deps): Process all double-colon entries of each file,
  2763.     not just the first one.
  2764.  
  2765.     * Version 3.36.
  2766.  
  2767.     * remote-stub.c: remote.c renamed.
  2768.     remote.c: Just include remote-stub.c
  2769.  
  2770.     * commands.c (child_handler): If we were called as a signal handler,
  2771.     return after handling one child.
  2772.  
  2773.     * commands.c [not USG]: Include <signal.h> and define `sigmask' if
  2774.     <signal.h> doesn't.
  2775.     (block_children, unblock_children): Use sigmask rather than
  2776.     bitshifting explicitly (and incorrectly).
  2777.  
  2778.     * remote.c (remote_kill): New function to send a signal to a
  2779.     remote child.
  2780.  
  2781.     * commands.c (fatal_error_signal): If we get a SIGTERM, send one to
  2782.     each living child.  If we get a SIGTERM, SIGINT, or SIGHUP, delete
  2783.     all pending targets before waiting for children.
  2784.     (struct child): Add new member `deleted'.
  2785.     (start_job): Initialize `deleted' member to 0.
  2786.     (delete_child_targets): New function to delete a given child's
  2787.     targets, unless the `deleted' flag in the `struct child' says they
  2788.     have already been deleted.  Sets this flag before returning.
  2789.  
  2790. Thu Feb 16 18:32:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2791.  
  2792.     * commands.c [USG]: Define `WRETCODE' correctly (X & 0xff00).
  2793.  
  2794. Tue Feb 14 16:05:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2795.  
  2796.     * commands.c (construct_command_argv): Don't make the 0th element of
  2797.     the argument list be "sh" when executing /bin/sh, because start_job
  2798.     uses the 0th element as the program name.
  2799.  
  2800. Sun Feb 12 17:42:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2801.  
  2802.     * Version 3.35.
  2803.  
  2804.     * read.c (readline): Put a null in the beginning of the buffer
  2805.     before starting the reading loop.
  2806.  
  2807.     * read.c (read_makefile): Made main reading loop while
  2808.     !feof (infile), and removed EOF check after calling readline.
  2809.  
  2810. Sun Feb  5 19:52:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2811.  
  2812.     * remote.c (block_remote_children, unblock_remote_children): New
  2813.     (stub) functions to block and restore asynchronous notification of
  2814.     remote child death.
  2815.  
  2816.     * commands.c (block_children): Call block_remote_children.
  2817.     (unblock_children): Call unblock_remote_children.
  2818.     (child_handler): If called as a signal handler, block remote
  2819.     children on entry and unblock them before returning.
  2820.  
  2821.     * commands.c (child_handler): For unknown children, if they are
  2822.     remote, give their remote ID; if local, give their PID and make's.
  2823.  
  2824.     * commands.c (execute_file_command): Don't put a new child in the
  2825.     chain unless start_job succeeds.  Block children before calling
  2826.     start_job, and unblock them after putting the child in the chain and
  2827.     incrementing `job_slots_used' (if start_job succeeded).
  2828.  
  2829.     * commands.c (block_children, unblock_children): Make these globally
  2830.     visible (not `static').
  2831.     commands.h: Declare block_children and unblock_children.
  2832.  
  2833.     * variable.c (expand_function: `shell'): Use
  2834.     `shell_function_completed'.  Block children before forking and
  2835.     unblock after `shell_function_pid' is set properly and
  2836.     `shell_functon_completed' is reset to 0.
  2837.  
  2838.     * commands.c (child_handler): When the child of the `shell' function
  2839.     completes, set `shell_function_completed' to 1 if it actually ran,
  2840.     or -1 if it didn't (due to fork or exec failure).
  2841.  
  2842.     * commands.c (block_children, unblock_children): New functions to
  2843.     block and unblock the child termination signal.
  2844.     (wait_for_children): Use block_children and unblock_children.
  2845.     (execute_file_commands): Block children around the critical section
  2846.     wherein a new child is put on the chain.
  2847.  
  2848.     * make.c (main): Change the environment to contain the correct
  2849.     MAKELEVEL before re-execing.
  2850.  
  2851. Sat Feb  4 18:28:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2852.  
  2853.     * Version 3.34.
  2854.  
  2855. Fri Feb  3 16:36:49 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  2856.  
  2857.     * rule.c (default_variables): Fixed $(LINK.c).
  2858.  
  2859. Wed Feb  1 18:05:07 1989  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  2860.  
  2861.     * Version 3.33.
  2862.  
  2863.     * version.c: Removed copyright notice, since this is a one-line file.
  2864.  
  2865.     * commands.c (error_status): Made it return BUF, rather than running
  2866.     off the end (this apparently worked on Sun 3s for some reason).
  2867.  
  2868.     * ar.c, commands.c, dep.h, load.c, make.c, make.h, read.c, remake.c,
  2869.     rule.c, variable.c, Makefile: Changed copyrght notices to cover 1989.
  2870.  
  2871. Mon Jan 30 15:51:28 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2872.  
  2873.     * Version 3.32.
  2874.  
  2875. Fri Jan 27 20:09:24 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2876.  
  2877.     * remake.c (remake_file): Don't touch phony targets.
  2878.  
  2879.     * rule.c (convert_to_pattern): Fixed an incorrect length passed to
  2880.     savestring.
  2881.  
  2882.     * variable.c (expand_function: `shell'): Close the read side of the
  2883.     pipe on the parent side of the fork.
  2884.  
  2885.     * commands.c (start_job): On the child of the fork, close the
  2886.     BAD_STDIN fd if we're not using it.
  2887.  
  2888.     * read.c (record_files): A file beginning with a dot can be a
  2889.     default target if it also contains a slash (as in `../foo').
  2890.  
  2891.     * commands.c (wait_for_children): For BSD, block SIGCHLD rather than
  2892.     ignoring it to avoid a race condition when child_handler is returning.
  2893.  
  2894.     * commands.c (child_handler): Do blocking waits.
  2895.     (error_status): Return a string describing exit status.  (Split out
  2896.     of child_handler).
  2897.  
  2898.     * read.c (multi_glob): Change VECTOR to VEC for Alliant.
  2899.  
  2900. Thu Jan  5 00:06:51 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2901.  
  2902.     * Version 3.31.
  2903.  
  2904.     * make.texinfo (Features): Noted $(foo:PAT=SUB) from SunOS 4.0.
  2905.  
  2906.     * make.texinfo (Options/Recursion): -d and -p go in the environment.
  2907.  
  2908.     * load.c: Include "commands.h".
  2909.  
  2910. Wed Jan  4 17:49:25 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2911.  
  2912.     * make.c (switches): -d and -p can come from the environment and are
  2913.     put into it.
  2914.  
  2915.     * read.c (record_files): Fixed the checking for duplicate deps so it
  2916.     doesn't clobber the first one.
  2917.  
  2918.     * make.texinfo: Documented default implicit rule changes.
  2919.  
  2920.     * rule.c: Revamped default suffix rules.  They now use Sun's style
  2921.     of using variables `COMPILE.c', `LINK.c', etc. for each suffix, and
  2922.     use `TARGET_ARCH' and `TARGET_MACH' variable where appropriate.
  2923.     Also support Modula-2 compilation (suffixes .sym, .def, and .mod).
  2924.     Ratfor Yacc support is gone, since nobody has yacc -r.
  2925.     All EFL support is gone, since nobody uses EFL.
  2926.  
  2927.     * ar.c, arscan.c: Don't assume `long int' and `int' are the same.
  2928.  
  2929.     * commands.c [USG]: Fixed wait status bit encoding.
  2930.     [USG and not USGr3] (dup2): Define this for SysVr2.
  2931.  
  2932.     * make.h, dep.h, make.c [iAPX286]: Make allowances for this
  2933.     brain-damaged compiler.
  2934.  
  2935.     * make.texinfo (Variables: Flavors): Fixed a typo.
  2936.  
  2937. Tue Jan  3 18:09:31 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2938.  
  2939.     * ar.c (ar_member_date, ar_touch): Truncate member names to 15 chars.
  2940.  
  2941.     * Version 3.30.
  2942.  
  2943.     * commands.c [SYS_WAIT]: If this is defined, use BSD <sys/wait.h>
  2944.     and wait3 even if USG.
  2945.  
  2946.     * read.c (record_files): Defining .DEFAULT with no deps or commands
  2947.     clears its commands.
  2948.  
  2949.     * rule.c (default_suffixes): Added `.sh'.
  2950.     (default_suffix_rules): Added single-suffix .sh rule, copies source
  2951.     to target and makes target executable.
  2952.     make.texinfo (Catalogue of Rules): Documented .sh rule and its use
  2953.     in conjunction with SCCS.
  2954.  
  2955.     * rule.c (set_default_suffixes): Define variable `SUFFIXES' to the
  2956.     default list ("" under -r).
  2957.     make.texinfo (Suffix Rules): Document `SUFFIXES' variable.
  2958.  
  2959.     * rule.c (default_variables), make.texinfo (Implicit Variables):
  2960.     Variable AR defaults to `ar', ARFLAGS to `rv', and RM to `rm -f'.
  2961.  
  2962.     * rule.c (install_default_pattern_rules): Default variables are made
  2963.     recursive.
  2964.     (default_variables): Added "CPP", defined to "$(CC) -E".
  2965.     (default_suffixes): Added `.S', before `.s'.
  2966.     (default_suffix_rules): New rule for .S to .s, runs CPP.
  2967.     All rules that use CPP now include "$(CPPFLAGS)".
  2968.     make.texinfo (Catalogue of Implicit Rules, Implicit Variables):
  2969.     Documented above changes.
  2970.  
  2971.     * commands.c [USG] (sys_siglist): Don't define.
  2972.     [USG] (init_siglist): New function to initialize sys_siglist.
  2973.  
  2974.     * make.texinfo (Variables: Reference): Documented `$(foo:PAT=SUB)'
  2975.     references.
  2976.  
  2977.     * variable.c (variable_expand): A reference `$(foo:PAT=SUB)' is
  2978.     equivalent to `$(patsubst PAT,SUB,$(foo))'.
  2979.  
  2980.     * variable.c (variable_expand): Free the storage for the expansion
  2981.     of a recursive variable when it is nod longer needed.
  2982.  
  2983.     * variable.c (variable_expand): When checking for `$($(foo))', use
  2984.     lindex so as not to search for the second `$' outside the parens.
  2985.  
  2986.     * make.c (struct stringlist, main, decode_switches): Changed `index'
  2987.     member to `idx'.
  2988.  
  2989. Sat Dec 24 16:02:32 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2990.  
  2991.     * commands.c (wait_for_children [USG]): Handle SIGCLD with SIG_DFL,
  2992.     rather than SIG_IGN.  Ignoring SIGCLD reportedly makes wait return -1.
  2993.  
  2994.     * arscan.c [USGr3]: Define PORTAR to 1 (as with sun386).
  2995.     (ar_scan [USGr3]): Remove trailing slashes from member names.
  2996.  
  2997. Thu Dec 22 17:54:05 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2998.  
  2999.     * make.texinfo (Makefiles: Overriding Makefiles): New node
  3000.     documenting use of .DEFAULT to have one makefile defer unmakeable
  3001.     targets to another.
  3002.  
  3003.     * make.texinfo (Implicit: Using Implicit, Implicit: Last Resort):
  3004.     Mention empty commands and xref node `Empty Commands'.
  3005.  
  3006. Wed Dec 21 20:12:40 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3007.  
  3008.     * Version 3.29.
  3009.  
  3010.     * make.c (struct command_switch, command_switches, et al): New
  3011.     member `noarg_value', if not nil, ptr to value to use if no arg is
  3012.     given to a switch that would otherwise require one.  The -j option
  3013.     can now be given w/o an arg, to mean infinite jobs.
  3014.     * commands.c: If job_slots is zero, infinite jobs.
  3015.  
  3016.     * read.c (read_all_makefiles, read_makefile): Make makefiles precious.
  3017.  
  3018.     * make.c (decode_switches): For a positive_int or floating option,
  3019.     if we moved to the next argument word, but found no argument for the
  3020.     option, move back to the correct word.
  3021.  
  3022.     * make.c (decode_switches): If we got any unknown options, die after
  3023.     processing all arguments.
  3024.  
  3025.     * GNUmakefile: Moved `include depend' to the end, so the default
  3026.     goal will be set before then.
  3027.  
  3028.     * load.c (wait_to_start_job [Unix, UMAX]): Merged into one version
  3029.     under #ifdef LDAV_BASED.  Only loop while we have jobs running.
  3030.     Sleep for increasing amounts (increase one second per iteration)
  3031.     before checking the load average (after the first check).
  3032.     Get the load average from function load_average.
  3033.     (wait_to_start_job [not LDAV_BASED]): Always return.
  3034.     (load_average [UMAX]): Fetch load average for Encore UMAX.
  3035.     (load_average [not NO_LDAV]): Fetch load average from /dev/kmem.
  3036.     [not NO_LDAV]: Define LDAV_BASED.
  3037.  
  3038. Tue Dec 20 18:54:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3039.  
  3040.     * Version 3.28.
  3041.  
  3042.     * commands.c (wait_for_children): Take second arg, ERROR.  If
  3043.     nonzero, and there are children, print a message on stderr.
  3044.     (execute_file_commands, fatal_error_signal): Pass second arg.
  3045.     * make.c (die), remake.c (update_goal_chain), variable.c
  3046.     (expand_function: `shell'): Ditto.
  3047.  
  3048. Sat Dec 17 01:05:38 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3049.  
  3050.     * commands.c (start_job): Call wait_to_start_job before forking.
  3051.  
  3052.     * load.c (load_average): Converted to wait_to_start_job.
  3053.  
  3054.     * remote.c: New file for remote execution functions.
  3055.     (start_remote_job_p): Return nonzero if the next job should be run
  3056.     remotely.
  3057.     (start_remote_job): Start a remote job and return an ID for it.
  3058.     (remote_status): Get status of dead remote children.
  3059.  
  3060. Fri Dec 16 16:51:07 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  3061.  
  3062.     * commands.c (start_job): If start_remote_job_p () returns nonzero,
  3063.     call start_remote_job to start the job rather than fork and exec.
  3064.     (child_handler):
  3065.  
  3066.     * commands.c (execute_file_commands): Moved load average checking to
  3067.     start_job.
  3068.  
  3069.     * commands.c (child_handler: USG): Record the pid wait returns.
  3070.  
  3071.     * load.c (UMAX): Added some #include's needed for UMAX.
  3072.  
  3073.     * read.c (multi_glob), variable.c (string_glob): Ignore a (char **)
  3074.     -1 return from glob_filename.
  3075.  
  3076.     * variable.c (variable_expand): Make sure we don't increment past
  3077.     the end of the string we were passed.
  3078.  
  3079.     * variable.c (variable_expand): Terminate the expansion.
  3080.  
  3081.     * file.c (rename_file): If there is already a file under the new
  3082.     name, set its contents equal to FILE's (ick).
  3083.  
  3084.     * variable.c (define_automatic_variables): Pass all the args to
  3085.     define_variable when defining MAKELEVEL!
  3086.  
  3087.     * commands.c (execute_file_commands): If max_load_average > 0, and
  3088.     we have children running, don't start up another child until the
  3089.     load average goes below max_load_average.
  3090.  
  3091.     * make.c: New variable `max_load_average'.
  3092.     (struct command_switch, decode_switches, decode_env_switches):
  3093.     Handle floating-point (double) args.
  3094.     (command_switches): Added `-l' switch to set `max_load_average'.
  3095.  
  3096.     * load.c (load_average): New file and function to return a double
  3097.     that is the current load average (1.00 scale).
  3098.     * GNUmakefile, oldMakefile: Pass flags in $(LOAD_AVG) for load.c.
  3099.  
  3100. Thu Dec 15 15:22:08 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3101.  
  3102.     * Makefile: Renamed to oldMakefile.
  3103.     * GNUmakefile: Make Makefile from oldMakefile and depend.
  3104.  
  3105.     * read.c (read_all_makefiles): When putting the default makefiles in
  3106.     the read_makefiles chain so they will be remade, put them in the
  3107.     right order.
  3108.  
  3109.     * remake.c (update_goal_chain): If MAKEFILES is nonzero, always make
  3110.     in serial, and return as soon as one goal whose `changed' member is
  3111.     nonzero  is successfully remade.
  3112.  
  3113.     * commands.c: Don't include <sys/fcntl.h>.
  3114.  
  3115.     * commands.c (construct_command_argv): Added ` to sh_chars.
  3116.  
  3117.     * make.h: Don't declare construct_makeflags.
  3118.  
  3119.     * make.c (main): Set up MAKEFLAGS and MFLAGS and make an environment
  3120.     both before and after reading the makefiles, so the makefiles can
  3121.     use them and possible change them, and later children will get the
  3122.     right information.
  3123.     (construct_makeflags): Replaced with define_makeflags (static void),
  3124.     which defines the two variables.
  3125.     * variable.c (define_automatic_variables): Don't define MAKEFLAGS
  3126.     and MFLAGS.
  3127.  
  3128. Mon Dec 12 14:40:31 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3129.  
  3130.     * Version 3.27.
  3131.  
  3132.     * commands.c (child_handler): Reset the handler to ourselves when
  3133.     called for USG, since it has no safe signals.
  3134.  
  3135.     * commands.c: For USG, use an int rather than a `union wait' for
  3136.     wait calls, and dissect it with bitmasks.
  3137.     (child_handler): No wait3 system call in USG.  Since we can't
  3138.     protect from hanging, always return immediately if we have no
  3139.     children we know about and we're not running a `shell' function.
  3140.     (There is still the danger of hanging waiting for a child that died
  3141.     without our being notified.)
  3142.  
  3143.     * remake.c: Include <fcntl.h> instead of <sys/file.h>.  What we need
  3144.     is really in <fcntl.h>, and while BSD <sys/file.h> includes
  3145.     <fcntl.h>, USG doesn't.
  3146.  
  3147.     * make.c (main): Figure out the program name before doing anything
  3148.     which might need it (in a call to error or fatal).
  3149.  
  3150.     * dir.c, glob.c: Use `struct dirent' and <dirent.h> for USGr3.
  3151.  
  3152.     * arscan.c (ar_scan): Added missing & before buf (which is an int)
  3153.     if SARMAG is not defined (SysV).
  3154.  
  3155. Fri Dec  9 18:44:13 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  3156.  
  3157.     * Version 3.26.
  3158.  
  3159.     * dir.c (find_directory, dir_file_exists_p): Keep track of how many
  3160.     directories we have open and don't let it be more than
  3161.     MAX_OPEN_DIRECTORIES (currently 10).
  3162.  
  3163.     * variable.c (expand_function: `foreach'): Use expand_argument
  3164.     rather than variable_expand so each repetition doesn't clobber the
  3165.     last!!!
  3166.  
  3167. Mon Dec  5 15:58:46 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  3168.  
  3169.     * Version 3.25.
  3170.  
  3171.     * Makefile: Define `install' target.
  3172.  
  3173.     * GNUmakefile: Don't include GNUmakefile or depend in the
  3174.     distribution file.
  3175.  
  3176. Wed Nov 30 15:53:42 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3177.  
  3178.     * commands.c (execute_file_commands): Don't clobber a null into
  3179.     random storage if there were no $^ and/or $? words.
  3180.  
  3181.     * remake.c (check_dep): Set *MUST_MAKE_PTR nonzero if a dependency
  3182.     doesn't exist.
  3183.  
  3184.     * ar.c (ar_member_date, ar_touch): Make sure the modtime of the
  3185.     archive file itself is known before we fetch or change the modtime
  3186.     of one of its members.
  3187.  
  3188.     * read.c (read_makefile): Expand variable and function references
  3189.     before parsing rules so variable can contain special characters
  3190.     (colons and semicolons).
  3191.  
  3192. Sat Nov 26 11:36:31 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3193.  
  3194.     * variable.c (expand_function: `filter', `filter-out'): Fixed so
  3195.     that filter-out works right.
  3196.  
  3197.     * variable.c (expand_function: `filter', `filter-out'): Made these
  3198.     functions use each word of their first argument as a pattern.
  3199.  
  3200. Fri Nov 25 10:51:47 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3201.  
  3202.     * Version 3.24.
  3203.  
  3204.     * read.c (record_files): If a target is listed more than once in a
  3205.     single rule (that defines commands), give a warning message rather
  3206.     than the counter-intuitive message saying commands were already
  3207.     defined (in the same place).
  3208.  
  3209.     * make.c (fatal, error): Made them both take 6 args since there is
  3210.     at least one error message that need that many.  Too bad vfprintf is
  3211.     not universal!
  3212.  
  3213.     * Version 3.23.
  3214.  
  3215.     * read.c (read_makefile): Moved the construction of the `struct
  3216.     commands' into record_files.  Call record_files before recursing for an
  3217.     included makefile so the higher-up will determine the default goal.
  3218.     (record_files): Take arguments COMMANDS, COMMANDS_IDX and
  3219.     COMMANDS_STARTED and construct a `struct commands.
  3220.  
  3221. Thu Nov 24 14:36:33 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3222.  
  3223.     * Version 3.22.
  3224.  
  3225.     * make.c (main): Made it a fatal error if we can't move back to the
  3226.     directory we started in before re-execing.
  3227.  
  3228.     * make.c (main): Get the current directory before doing anything
  3229.     else, so we know it even if we don't need it for the value of
  3230.     `MAKE', since we might want it when re-execing.
  3231.  
  3232. Wed Nov 23 13:34:44 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3233.  
  3234.     * Version 3.21.
  3235.  
  3236.     * read.c (record_files): Eliminate duplicate deps in a chain.
  3237.  
  3238.     * variable.c (expand_function: `sort'): Pass the right number to
  3239.     qsort, not one less.
  3240.  
  3241.     * remake.c (remake_file): Always call notice_finished_file if
  3242.     FILE->command_state == cs_finished.
  3243.  
  3244.     * commands.c (execute_file_commands): Call notice_finished_file to
  3245.     set FILE's status correctly when start_job fails (because it's out
  3246.     of commands or running under -n).
  3247.  
  3248. Fri Nov 18 15:31:12 1988  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  3249.  
  3250.     * Version 3.20.
  3251.  
  3252.     * remake.c (update_file_1): Set the `update_status' of FILE to
  3253.     nonzero and set FILE's `updated' bit if we have decided to give up
  3254.     on remaking FILE because of errors in the dependencies.
  3255.  
  3256.     * rule.c (pattern_search): Debugging messages use `dependency' (vs.
  3257.     `dependent') properly.
  3258.  
  3259.     * make.texinfo (Conditionals: Conditional Syntax): Function index
  3260.     entries for `ifndef' and `ifneq'.
  3261.  
  3262.     * variable.c (define_automatic_variables): Define `MAKELEVEL' to the
  3263.     decimal number of the makelevel, since it may be malformed or blank.
  3264.  
  3265.     * remake.c (remake_file): Call notice_finished_file after touching.
  3266.  
  3267. Sat Nov 12 19:29:34 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3268.  
  3269.     * Version 3.19.
  3270.  
  3271.     * GNUmakefile (dist): Pass the `-f' flag to compress.
  3272.  
  3273.     * vpath.c (build_vpath_lists): Check for VPATHS being nil after
  3274.     constructing the general VPATH list from the `VPATH' variable.
  3275.  
  3276. Fri Nov 11 08:02:26 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3277.  
  3278.     * make.c (fatal, error): Made error messages for recursive runs be
  3279.     shorter.
  3280.  
  3281. Thu Nov 10 16:51:36 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
  3282.  
  3283.     * Version 3.18.
  3284.  
  3285.     * read.c (read_makefile): Made it eat leading spaces and formfeeds
  3286.     (but not tabs), like it's documented to.
  3287.  
  3288.     * read.c (read_makefile): Let included makefiles determine the
  3289.     default goal, as is done by System V Make.
  3290.  
  3291. Tue Nov  1 19:03:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3292.  
  3293.     * variable.c (new_environ): Don't increment VCNT when a variable is
  3294.     rejected.
  3295.  
  3296. Fri Oct 28 16:54:15 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
  3297.  
  3298.     * Version 3.17.
  3299.  
  3300.     * rule.c (convert_to_pattern): Don't use the same storage for a name
  3301.     in two rules since new_pattern_rule may free this storage when a
  3302.     rule is discarded.
  3303.  
  3304.     * rule.c (new_pattern_rule): Undid useless change I made Oct 25.
  3305.  
  3306. Thu Oct 27 19:17:53 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3307.  
  3308.     * Version 3.16.
  3309.  
  3310.     * GNUmakefile, Makefile: Fixed a typo in a comment.
  3311.     * Makefile: Removed malloc.o from object file list.
  3312.  
  3313.     * variable.c: Removed old debugging #define's for xmalloc and
  3314.     xrealloc so non-ANSI cpp's won't barf.
  3315.  
  3316.     * make.c (main): Made local array for temp file name static so
  3317.     compilers that don't do auto aggregate initialization won't barf.
  3318.  
  3319.     * read.c: Removed static declaration of copy_dep_chain since it is
  3320.     no longer static.
  3321.  
  3322. Tue Oct 25 16:59:30 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  3323.  
  3324.     * rule.c (new_pattern_rule): If we threw out the new rule because it
  3325.     matched an old one and OVERRIDE was zero, don't put the freed
  3326.     pointer in the chain!
  3327.  
  3328. Wed Oct 19 15:07:43 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  3329.  
  3330.     * Version 3.15.
  3331.  
  3332.     * variable.c (expand_function: `sort'): Don't do the sorting and
  3333.     writing out if there were no words in the first place.
  3334.  
  3335.     * remake.c (remake_file): Only fail with a "no way to make" message
  3336.     for a dependency (non-target) file.  If we don't know how to remake
  3337.     a target file, pretend it was successfully remade and is very new.
  3338.  
  3339.     * remake.c (remake_file): Don't increment `files_remade' for a
  3340.     non-target file we don't know how to remake.
  3341.  
  3342.     * read.c (record_files): Don't die with "both : and :: entries" for
  3343.     a file whose `is_target' flag is not set.
  3344.  
  3345. Tue Oct 18 17:24:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3346.  
  3347.     * variable.c (expand_function: `patsubst', `subst'): Free the right
  3348.     things!
  3349.  
  3350.     * variable.c (expand_function: `subst'): Don't clobber the
  3351.     pointer to the end of the second arg and then try to use it!!!
  3352.  
  3353. Mon Oct 17 16:44:45 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  3354.  
  3355.     * variable.c (expand_function: `patsubst'): Don't clobber the
  3356.     pointer to the end of the second arg and then try to use it!!!
  3357.  
  3358.     * variable.c (expand_function: `word' function): Made it parse its
  3359.     second argument correctly.
  3360.  
  3361.     * ar.c (ar_touch): Return 1 rather than -1 for on errors.
  3362.  
  3363. Sat Oct 15 15:12:16 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3364.  
  3365.     * Version 3.14.
  3366.  
  3367.     * GNUmakefile: Removed explicit rule for make.dvi since the built-in
  3368.     implicit rule now works.
  3369.  
  3370.     * rule.c (default_suffix_rules): Fixed .texinfo.dvi rule yet again
  3371.     so that it really works, now that parens are counted.
  3372.  
  3373.     * remake.c (update_file_1): Set FILE's `updated' flag after calling
  3374.     remake_file if it failed or finished immediately.
  3375.  
  3376.     * remake.c (update_file): Use the `updated' flag rather than the
  3377.     command state to decide if a file was fully considered, and
  3378.     therefore might give an "up to date" message.
  3379.  
  3380.     * variable.c (expand_function): Made all functions that take more
  3381.     than one argument count parens of the appropriate flavor in their
  3382.     args and ignore commands nested in parens.
  3383.  
  3384. Fri Oct 14 18:35:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3385.  
  3386.     * read.c (read_all_makefiles): Pass second arg to read_makefile for
  3387.     default makefiles.
  3388.  
  3389. Thu Oct 13 16:40:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3390.  
  3391.     * Version 3.13.
  3392.  
  3393.     * GNUmakefile: Added an explicit rule for make.dvi since the
  3394.     built-in .texinfo.dvi implicit rule is screwed up.
  3395.  
  3396.     * rule.c (default_suffix_rules): Added a comment that the
  3397.     .texinfo.dvi rule does not work because of an ahem, feature of Make
  3398.     that at some point will be fixed--er, enhanced to alleviate this
  3399.     difficulty.
  3400.  
  3401.     * rule.c (default_suffix_rules): Fixed Texinfo -> DVI rule (again).
  3402.  
  3403.     * make.texinfo (Commands: Execution): Documented new competing for
  3404.     standard input among children.
  3405.  
  3406.     * commands.c (struct child): Added `good_stdin' flag to tell if this
  3407.     child has the stdin that doesn't point into nirvana.
  3408.     (good_stdin_used): New variable to tell if any child has the good
  3409.     standard input.
  3410.     (child_handler): Reset `good_stdin_used' if a dead child's
  3411.     `good_stdin' flag is set.
  3412.     (start_job): Give the new child the good standard input if
  3413.     `good_stdin_used' is no set, and set the child's `good_stdin' flag
  3414.     appropriately.
  3415.  
  3416.     * rule.c (default_suffix_rules): Changed Texinfo -> DVI rule to work
  3417.     better (I hope).
  3418.  
  3419.     * read.c (read_all_makefiles): Stop reading default makefiles after
  3420.     one is found.
  3421.  
  3422.     * read.c (read_makefile): Reset `reading_filename' and
  3423.     `reading_lineno_ptr' after recursing for an included makefile.
  3424.  
  3425.     * GNUmakefile: New GNU Make-specific makefile that does everything
  3426.     Makefile does plus distribution stuff, and doesn't contain any hacks
  3427.     to try to work with Unix make.
  3428.  
  3429.     * Makefile: Removed distribution stuff.
  3430.  
  3431.     * make.c (main): Use mktemp to construct the names of temporary
  3432.     files used for standard input makefiles.
  3433.  
  3434.     * make.c (main): Don't turn standard input into a broken pipe.
  3435.  
  3436.     * commands.c (start_job): Keep two extra file descriptors around: a
  3437.     good standard input, and a bad one that reads from a broken pipe.
  3438.     On the child side of the fork, if there are other children, give
  3439.     this one the broken pipe so they won't compete; if this is the only
  3440.     one, give it the good standard input.
  3441.  
  3442.     * make.h: Declare notice_finished_file.
  3443.  
  3444.     * commands.c (execute_file_commands): Use noticed_finished_file
  3445.     after waiting for the child when there is only one job slot.
  3446.  
  3447.     * remake.c (notice_finished_file): New function to re-check mtime's
  3448.     and such things to be done when commands finish.
  3449.     (update_file_1): Use notice_finished_file.
  3450.  
  3451.     * commands.c (child_handler, execute_file_commands): Use new
  3452.     variable `job_slots_used' to record the number of jobs currently
  3453.     running, rather than diddling with `job_slots'.
  3454.     (execute_file_commands): Increment `job_slots_used' before calling
  3455.     start_job and decrement it on failure to avoid race condition.
  3456.     If there is only one job slot, wait for the child to finish and
  3457.     return its status so commands are run in linear order, as if there
  3458.     were no parallelism.
  3459.  
  3460. Wed Oct 12 15:59:03 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3461.  
  3462.     * remake.c (remake_file): Don't print a "No way to make" message for
  3463.     targets whose `dontcare' flags are set.
  3464.  
  3465.     * read.c (read_all_makefiles): Set the `dontcare' flag of the
  3466.     `struct file' each default makefile added to the chain.
  3467.  
  3468.     * file.h (struct file): Add `dontcare' member.
  3469.  
  3470.     * read.c (read_all_makefiles): When no default makefiles are found,
  3471.     put the names of all those tried in the `read_makefiles' chain so
  3472.     they will be updated if possible, giving their `struct dep's'
  3473.     `changed' members the value of 0 so we won't care if they cannot be
  3474.     found or remade.
  3475.  
  3476.     * make.texinfo (Makefiles: Remaking Makefiles): Documented that
  3477.     default makefiles will be remade if not found.
  3478.  
  3479.     * read.c (read_all_makefiles): If no default makefiles can be found,
  3480.     go through the list of default names, trying to make one, stopping
  3481.     if one is made.
  3482.  
  3483.     * remake.c (remake_file): Set STATUS to 0 after successfully touching.
  3484.  
  3485.     * dir.c (file_impossible, file_impossible_p): Don't clobber FILENAME
  3486.     to "" and then try to to a strcmp on it!!!
  3487.  
  3488. Mon Oct 10 16:09:18 1988  Roland McGrath  (mcgrath at cinnamon.Berkeley.EDU)
  3489.  
  3490.     * make.c (main): Don't do `dir_load (".")'.
  3491.  
  3492.     * rule.c (count_implicit_rule_limits), vpath.c
  3493.     (construct_vpath_list): Test the existence of a given directory by
  3494.     `dir_file_exists_p (DIR, ".")' and assume that if this returns zero,
  3495.     it means the directory really does not exist.
  3496.  
  3497.     * dir.c (struct dirdata): Replaced with `struct directory' for
  3498.     directories, each containing a chain of `struct dirfiles', one for
  3499.     each file (real or impossible).
  3500.     (dir_load): Removed.
  3501.     (find_directory): New function to find the `struct directory' for a
  3502.     named directory and return it (possibly creating a new one).
  3503.     (dir_file_exists_p): Read the directory on the fly if its stream is
  3504.     still valid (and ever was) if the file we're looking for is not
  3505.     already in the hash tables.
  3506.     (file_impossible, file_impossible_p, dir_name, print_dir_data_base):
  3507.     Use the new directory/file scheme.
  3508.  
  3509.     * make.texinfo: Miscellaneous editorial changes and clarifiactions.
  3510.  
  3511.     * commands.c (struct child): Remove `environ' member.
  3512.     (child_handler, start_job, execute_file_commands): Remove use of
  3513.     `environ' member and new_environ.
  3514.  
  3515.     * make.c (main): Call new_environ after reading makefiles.
  3516.  
  3517.     * variable.h: Declare `new_environ' to return void.
  3518.  
  3519.     * variable.c (new_environ): Put the environment in `environ' and
  3520.     return void.
  3521.  
  3522. Fri Oct  7 15:48:39 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  3523.  
  3524.     * Version 3.12.
  3525.  
  3526.     * Makefile: Don't make the uncompressed tar file.
  3527.  
  3528.     * variable.c (expand_function: `shell' function): Made it not expect
  3529.     read to null-terminate the buffer.
  3530.  
  3531.     * Makefile: Made it use a temporary symlink to . rather than a
  3532.     temporary directory to make the distribution tar file.
  3533.  
  3534. Thu Oct  6 17:52:35 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3535.  
  3536.     * Version 3.11.
  3537.  
  3538.     * make.texinfo: Fixed a line that got garbaged somehow.
  3539.  
  3540. Mon Oct  3 16:14:39 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3541.  
  3542.     * make.c (main): Try to move back to the directory we started in
  3543.     before re-exec ourself.
  3544.  
  3545.     * remake.c (update_file_1): A double-colon target with no deps
  3546.     always needs to be remade.
  3547.  
  3548.     * remake.c (remake_file): Changed "No way to make" message to say
  3549.     `target' rather than `file'.
  3550.  
  3551. Sun Oct  2 12:50:47 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  3552.  
  3553.     * remake.c (update_file_1): Set FILE->update_status to the return
  3554.     value of remake_file.
  3555.  
  3556.     * rule.c (convert_to_pattern): Fixed swapped lengths passed to
  3557.     xmalloc for source/target suffixes.
  3558.  
  3559.     * make.texinfo: Documented that MAKEFLAGS and MFLAGS are read in
  3560.     from makefiles.  Updated the `Features' section a bit.
  3561.  
  3562.     * make.c (main): Read switches from MAKEFLAGS and MFLAGS variables
  3563.     after reading in makefiles.
  3564.  
  3565.     * make.c (main): Put a line "/tmp/foo:;" rather than ".PHONY:
  3566.     /tmp/foo" in front of temp files made for stdin makefiles.
  3567.  
  3568.     * remake.c (update_file): Test the state of the right `struct file'
  3569.     for double-colon files.
  3570.  
  3571.     * make.c (main): Put a ".PHONY: /tmp/foo" line in front of temp
  3572.     files made for stdin makefiles so they won't be remade when we
  3573.     re-exec.  Kludge-o-matic!!
  3574.  
  3575.     * remake.c (update_goal_chain): Judge files as being finished based
  3576.     on their `updated' flag, not their state.
  3577.  
  3578.     * read.c (read_makefile): Don't check for FILENAME being "-".
  3579.     (read_all_makefiles): Set each element of MAKEFILES to the name put
  3580.     in READ_MAKEFILES by read_makefile, since read_makefile may free the
  3581.     storage for the name it is passed, and someone might want to look at
  3582.     the elements of MAKEFILES again.
  3583.  
  3584.     * make.c (main): For each `-f' flag with arg `-' (standard input),
  3585.     read standard input into a temp file and pass the temp file's name
  3586.     to read_all_makefiles, after making sure it will not be remade.
  3587.  
  3588.     * make.c (construct_makeflags): Always put out `-j1'.
  3589.  
  3590. Sat Oct  1 00:19:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3591.  
  3592.     * commands.c (execute_file_commands): If commands are nothing but
  3593.     whitespace, set the state to `cs_finished' before returning 0.
  3594.  
  3595.     * make.c (decode_switches): Allocate space for args in stringlists
  3596.     so they can be freed later.
  3597.  
  3598.     * make.h: Declare `makelevel'.
  3599.  
  3600.     * variable.c (makelevel): Moved to make.c (and made global).
  3601.  
  3602.     * make.c (fatal, error): Print the makelevel if it's > 0.
  3603.     (perror_with_name): Use error rather than calling fprintf directly.
  3604.     (pfatal_with_name): Use fatal rather than fprintf and die.
  3605.  
  3606.     * variable.c (new_environ): Don't put default variables (origin
  3607.     `o_default') into the environment; they just take up space.
  3608.  
  3609.     * read.c (read_makefile): Don't add FILENAME to the chain of read
  3610.     makefiles if it's "-" (standard input).
  3611.  
  3612.     * remake.c (update_goal_chain): Set STATUS correctly when nothing
  3613.     happens (as well as in all other situations).
  3614.  
  3615.     * make.c (construct_makeflags): Put a `-' before each switch and
  3616.     spaces between them.
  3617.  
  3618.     * Version 3.10.
  3619.  
  3620.     * commands.c (wait_for_children): Don't check if `children' is nil.
  3621.     This is the case when waiting for the child of a `shell' function.
  3622.  
  3623.     * dir.c (dir_load): Don't add a hash-table entry for directory
  3624.     DIRNAME and filename "" if DIRNAME doesn't exist.
  3625.  
  3626.     * commands.c (execute_file_commands): Return 0 after start_job
  3627.     returns 1 (failure) under the -n flag.
  3628.  
  3629.     * remake.c (remake_file): Set the state to `cs_finished' when not
  3630.     calling execute_file_commands.
  3631.  
  3632.     * remake.c (update_goal_chain): Second arg is now MAKEFILES, nonzero
  3633.     meaning to disable -t, -q, and -n for each target unless the target
  3634.     was also given on the command-line.
  3635.  
  3636.     * read.c (read_makefile): Enter the `struct file's for the makefiles
  3637.     added to the `read_makefiles' `struct dep' chain.
  3638.  
  3639.     * remake.c (update_goal_chain): Made it not enter the files for the
  3640.     goals in the chain.  It will already have been done.
  3641.  
  3642.     * rule.c (convert_to_pattern): Null-terminate the names of targets
  3643.     and deps of the pattern rules properly.
  3644.  
  3645. Fri Sep 30 18:56:20 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
  3646.  
  3647.     * make.c (main): Call install_default_pattern_rules.
  3648.  
  3649.     * make.h: Declare copy_dep_chain.
  3650.  
  3651.     * read.c (copy_dep_chain): Moved to make.c (and made global).
  3652.  
  3653.     * make.c (main): Call update_goal_chain to update goals.
  3654.     Update read makefiles and re-exec self if they change.
  3655.  
  3656.     * remake.c (update_file): Make this function static.
  3657.     (update_goal_chain): New function to update a `struct dep' chain of
  3658.     goals, waiting until they are all finished before returning.
  3659.  
  3660.     * make.h: Don't declare update_file.  Declare update_goal_chain.
  3661.  
  3662.     * make.c (main): Call snap_deps, etc. that were in read_all_makefiles.
  3663.  
  3664.     * read.c (find_makefile): Removed this function.
  3665.     (read_all_makefiles): Don't update makefiles, don't diddle with
  3666.     pattern rules, don't call snap_deps, etc.  Return a `struct dep'
  3667.     chain of all makefiles read.
  3668.     (read_makefile): Now takes two args: FILENAME and TYPE, which is 0
  3669.     for a normal makefile, 1 for MAKEFILES variable or 2 for an included
  3670.     makefile.  Add a `struct dep' containing the name of the makefile
  3671.     (as it was found in the search path for type 2s), and TYPE in the
  3672.     `changed' member to the global `read_makefiles' chain.
  3673.  
  3674.     * make.h, rule.c (displace_pattern_rules,
  3675.     add_displaced_pattern_rules): Removed these functions.
  3676.  
  3677.     * read.c (read_makefile): Variable-expand the name of an `include'd
  3678.     makefile before calling find_makefile on it.
  3679.  
  3680.     * file.c (snap_deps): If the `struct file' for a `struct dep'
  3681.     already exists, free the `struct dep's `name' member before setting
  3682.     it to nil (since this info is in the `struct file').
  3683.  
  3684.     * read.c (copy_dep_chain): Made it copy each name rather than
  3685.     leaving multiple `struct dep's with the same pointers.
  3686.  
  3687. Thu Sep 29 19:08:13 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  3688.  
  3689.     * make.c (decode_switches): Fixed second decode_env_switches call to
  3690.     use correct length of "MFLAGS" (6, not 5).
  3691.  
  3692.     * read.c (read_makefile): Don't stop reading when readline returns
  3693.     zero lines read.  Only stop when the stream reaches EOF.  This makes
  3694.     it recognize the last line of a makefile without a newline.
  3695.  
  3696.     * remake.c (remake_file): If we don't know how to make FILE, set its
  3697.     command state to `cs_finished'.
  3698.  
  3699.     * remake.c (update_file): Don't write the "up to date" message if
  3700.     update_file_1 returned a nonzero status.
  3701.  
  3702. Wed Sep 28 16:30:07 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  3703.  
  3704.     * commands.c (child_handler): Set the `update_status' member
  3705.     properly for ignored errors.
  3706.  
  3707.     * rule.c (convert_to_pattern): Made it not care about if the target
  3708.     suffix comes before the source suffix in the .SUFFIXES list.
  3709.  
  3710.     * make.texinfo: Misc editorial changes.
  3711.  
  3712.     * commands.c (wait_for_children): Return immediately if `children'
  3713.     is nil (there are no children).
  3714.  
  3715. Tue Sep 27 15:33:14 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  3716.  
  3717.     * Version 3.09.
  3718.  
  3719.     * commands.c (struct child): New member `command_ptr' to hold the
  3720.     current position in the commands.  The `commands' member is never
  3721.     changed.
  3722.     (start_job, child_handler, execute_file_commands): Use new method
  3723.     for `commands' and `command_ptr' members.
  3724.  
  3725.     * make.c (decode_env_switches): Skip past an invalid letter (instead
  3726.     of looping forever).
  3727.  
  3728.     * commands.c (struct child): Add `environ' member to hold the
  3729.     environment for this child.
  3730.     (execute_file_commands): Get a new environment from new_environ and
  3731.     put in the the new `struct child's `environ' member.
  3732.     (child_handler): When freeing a child, free its `commands' member, the
  3733.     elements of its `environ' array and its `environ' member itself.
  3734.     (start_job): Set `environ' to the child's `environ' member before
  3735.     exec'ing the command.
  3736.  
  3737.     * variable.h, variable.c (new_environ): Made it return the new
  3738.     environment, not putting it in `environ'.
  3739.  
  3740.     * remake.c (update_file): Don't give a "is up to date" message
  3741.     unless no files were remade and the state went from `cs_not_started'
  3742.     to `cs_finished', so repeat calls to finish jobs won't get the message.
  3743.  
  3744. Mon Sep 26 16:26:08 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3745.  
  3746.     * Version 3.08.
  3747.  
  3748.     * make.texinfo (Commands: Execution): Documented that children will
  3749.     be waited for rather than killed.
  3750.  
  3751.     * commands.c (fatal_error_signal): Wait for children.
  3752.     (kill_children): Removed this function.
  3753.  
  3754.     * make.c (main, die): Wait for children to die, don't kill them.
  3755.  
  3756.     * variable.c (expand_function): Use wait_for_children.
  3757.  
  3758.     * make.c (main): Use wait_for_children rather than child_handler.
  3759.  
  3760.     * commands.c (wait_for_children): New function to block waiting for
  3761.     children, insuring that child_handler is not called recursively.
  3762.     (execute_file_commands, kill_children): Use wait_for_children.
  3763.  
  3764.     * commands.c (child_handler): Start up additional commands in a
  3765.     sequence after an ignored error.
  3766.  
  3767.     * remake.c (update_file): Don't print "`foo' is up to date" messages
  3768.     when update_file_1 returns while commands are executing.
  3769.  
  3770.     * remake.c (update_file_1): Pass the file name to name_mtime, not
  3771.     the bloody `struct file', dammit!!
  3772.  
  3773.     * commands.c (child_handler): Print out the "*** ..." error message
  3774.     when not under -i.  (I somehow forgot this.)
  3775.  
  3776.     * remake.c (update_file_1): Use name_mtime rather than file_mtime to
  3777.     re-get the mtime of a file whose commands have finished.
  3778.  
  3779.     * make.c (command_switches, decode_switches, decode_env_switches):
  3780.     Make all switches that take string args allow them right after the
  3781.     switch letter.
  3782.  
  3783.     * commands.c (child_handler): Check for a child being the `shell'
  3784.     function's command returning and set the global variable for
  3785.     expand_function to check.
  3786.  
  3787.     * variable.c (expand_function): For the `shell' function, instead of
  3788.     waiting for the child shell ourselves, let child_handler do it and
  3789.     loop around waiting for something to happen.
  3790.  
  3791.     * make.c (print_version): Made the copyright year static, not dynamic.
  3792.  
  3793.     * make.h, make.c: Remove construct_argv function.
  3794.  
  3795.     * make.c (main): Say "no goal target" instead of "no target".
  3796.  
  3797.     * make.texinfo (Commands: Parallel): Don't send SIGKILL.
  3798.  
  3799.     * commands.c (kill_children): Don't send SIGKILL to children that
  3800.     aren't killed by the first signal.
  3801.  
  3802.     * make.c (main), commands.c (kill_children): Decide between SIGCHLD
  3803.     and SIGCLD based on whether or not SIGCHLD is defined, not on USG.
  3804.  
  3805.     * Makefile: Link make with $(LOADLIBES).
  3806.  
  3807.     * read.c (construct_include_path): Fixed another bad xrealloc call.
  3808.  
  3809.     * make.c (decode_switches): Fixed an xrealloc call with no first arg.
  3810.  
  3811. Sat Sep 24 01:16:21 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3812.  
  3813.     * Version 3.07.
  3814.  
  3815.     * remake.c (update_file_1): If deps are running, set state to
  3816.     `cs_deps_running' and return 0.  If deps are done, run commands.
  3817.  
  3818.     * commands.c (child_handler): Made it delete non-precious targets
  3819.     killed by fatal signals.
  3820.  
  3821.     * make.texinfo: Documented parallelism.
  3822.  
  3823. Fri Sep 23 16:52:27 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3824.  
  3825.     * remake.c (update_file_1): Don't return if FILE's state is
  3826.     `cs_deps_running'.  In that case, we need to run through and check
  3827.     the states of all our dependencies.
  3828.  
  3829.     * commands.c (execute_file_commands): Decrement `job_slots' after
  3830.     starting a new job to run file commands.
  3831.  
  3832.     * commands.c (start_job): Made it set the state to `cs_running'.
  3833.  
  3834.     * make.c (main): Fixed usage of `g', `lastgoal', and `goals' in the
  3835.     goal-making loop.
  3836.  
  3837.     * commands.c (child_handler): When commands finish, set the
  3838.     corresponding file's `update_status' and `updated' flags as
  3839.     appropriate, and reset the modtimes of the file and any `also_make'
  3840.     files it has.
  3841.  
  3842.     * remake.c (remake_file): Don't re-set `last_mtime' and set `updated'.
  3843.  
  3844.     * commands.c (fatal_error_signal): Don't swallow all the children
  3845.     with a loop around `wait ((union wait *) 0)'!!!
  3846.  
  3847.     * make.c (struct command_switch): Added `positive_int' type.
  3848.     (switches): Added -j (job_slots).
  3849.     (construct_makeflags, decode_switches, decode_env_switches):
  3850.     Handle`positive_int'-type switches.
  3851.  
  3852.     * glob.c (glob_vector): Rename local variable `vector' to `VeCtOr'.
  3853.     This is said to avoid a conflict with some system's global `vector'
  3854.     variable.
  3855.  
  3856.     * variable.c (expand_function): Made the `shell' function use
  3857.     construct_command_argv and do its own child control and piping.
  3858.  
  3859.     * make.c (main): Turn standard input into a broken pipe after
  3860.     reading in all makefiles (the last time it will be needed).
  3861.  
  3862.     * commands.c (struct child): Remove `pipe_fd' member.  We don't use
  3863.     pipes any more.
  3864.     (start_job): Return 0 for success, 1 or failure (rather than void).
  3865.     Don't use pipes.  Don't turn the child's stdin into a broken pipe.
  3866.     (child_handler): Print "*** Error" messages when necessary.
  3867.     Die on failed commands when -k was not given.
  3868.     (execute_file_commands): Check the return of start_job and remove
  3869.     the child from the chain and return failure if it is nonzero.
  3870.  
  3871.     * make.c (die): New function to clean up and exit.
  3872.     (fatal, pfatal_with_name): Use die.
  3873.  
  3874. Thu Sep 22 14:27:11 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3875.  
  3876.     * commands.c (struct child): Added `commands', `pipe_fd', and
  3877.     `noerror' members to keep track of info about a command thread.
  3878.     (start_job): New function to start a job and update the argument
  3879.     `struct child' to reflect its status.
  3880.     (execute_file_commands): Merged run_file_commands back in.
  3881.     Made it use new start_job function.
  3882.  
  3883.     * rule.c (freerule): Don't free the `struct commands' of the
  3884.     discarded rule.  It may be used in more than one place.
  3885.  
  3886.     * commands.c (execute_command_line): Made it not try to delete the
  3887.     possibly partly-made file.  The child_handler function will do this.
  3888.     (fatal_error_signal): Ditto + call kill_children.
  3889.  
  3890.     * make.h: Declare job_slots.
  3891.  
  3892.     * make.c (main): Collect goals in a dep chain and run through this
  3893.     chain waiting for a child, eliminating finished goals, updating all
  3894.     remaining goals, and quitting if they fail and not -k.
  3895.  
  3896.     * commands.c (child_handler): If called with SIG < 0, - SIG is the
  3897.     max number of children to bury.
  3898.  
  3899.     * commands.c (child_handler): If called with SIG as zero,
  3900.     block waiting for running children.
  3901.     (kill_children): Call child_handler with zero rather than SIGCHLD.
  3902.  
  3903.     * remake.c (update_file_1): Use the `command_state' member of FILE
  3904.     and its dependencies to determine what commands are running, what to
  3905.     do, etc.  If commands or dep commands are running when we are
  3906.     called, return success (0).  If commands finished since the last
  3907.     time we were called, return their status.
  3908.  
  3909.     * commands.h: Declare kill_children.
  3910.  
  3911.     * commands.c: Define `struct child' to keep track of child
  3912.     processes, with the chain in `children'.
  3913.     (child_handler): New function to catch child-termination signals
  3914.     (SIGCHLD, or SIGCLD for USG), store the returned status in the
  3915.     appropriate structure, take the now-obsolete `struct child' out of
  3916.     the chain, and free its storage.
  3917.     (execute_file_commands): Put all of the stuff invloving running the
  3918.     commands into new function run_file_commands.  Execute_file_commands
  3919.     now does process management for the commands, while
  3920.     run_file_commands (which is run in a subprocess) runs the commands.
  3921.     (kill_children): New function to kill all running children by
  3922.     sending them signal SIG.  If there are any children still living
  3923.     after they are all sent SIG, they are all sent SIGKILL.
  3924.  
  3925.     * make.c (main): Catch SIGCHLD (SIGCLD for USG) with child_handler.
  3926.  
  3927.     * commands.h: Declare child_handler function.
  3928.  
  3929.     * commands.c (execute_file_commands): Check the `command_state'
  3930.     member of FILE and return 0 if it is `cs_running' or
  3931.     `cs_deps_running' and return the stored status if it is `cs_finished'.
  3932.  
  3933.     * file.h (struct file): Added `command_state' member.
  3934.  
  3935.     * commands.c (execute_command_line): Add `$' to the list of
  3936.     characters special to the shell.
  3937.  
  3938. Wed Sep 21 15:57:41 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3939.  
  3940.     * read.c (read_all_makefiles): Call convert_to_pattern before
  3941.     recomputing the limits after adding the displaced rules.
  3942.  
  3943.     * make.c (main): Move calls to snap_deps, convert_to_pattern, and
  3944.     build_vpath_lists to read_all_makefiles.
  3945.  
  3946.     * read.c (read_all_makefiles): Install the default pattern rules
  3947.     before checking to remake the makefiles, displace these rules before
  3948.     reading in the makefiles, and then add the displaced rules to the
  3949.     chain after reading in all the makefiles.
  3950.  
  3951.     * make.c (main): Don't call install_default_pattern_rules or
  3952.     count_implicit_rule_limits.
  3953.  
  3954.     * make.h: Declare displace_pattern_rules and
  3955.     add_displaced_pattern_rules.
  3956.  
  3957.     * rule.c (displace_pattern_rules, add_displaced_pattern_rules): New
  3958.     functions to stow the chain and add the stowed chain on the end of
  3959.     the current chain.
  3960.  
  3961.     * make.texinfo (Implicit: Search Algorithm): Fixed PREV reference.
  3962.  
  3963.     * make.c (main): Call construct_include_path right after decoding
  3964.     the switches.
  3965.  
  3966.     * read.c (find_makefile): Use rename_file.
  3967.  
  3968.     * file.h: Declare rename_file.
  3969.  
  3970.     * file.c (rename_file): New function to rename a `struct file' and
  3971.     put it in the correct hash bucket.
  3972.  
  3973.     * read.c (find_makefile): New function to find and update a makefile.
  3974.      (read_all_makefilese): Use find_makefile.
  3975.      (read_makefile): Don't do updating.  Removed UPDATEIT arg.
  3976.  
  3977.     * remake.c (update_file_1): Took out setting the `updated' member to
  3978.     -1 rather than 1 sometimes.
  3979.  
  3980.     * make.c (main): Made it print version info before doing anything else.
  3981.  
  3982.     * remake.c (library_file_mtime, f_mtime): Removed use of last two
  3983.     arguments to vpath_search.
  3984.  
  3985.     * rule.c (pattern_search): Removed use of last two arguments
  3986.     to vpath_search.
  3987.  
  3988.     * vpath.c (vpath_search, selective_vpath_search): Removed unused
  3989.     DIRPREFIX and DPLEN args.
  3990.  
  3991.     * read.c (read_makefile): Also turn off -n when updating makefiles.
  3992.  
  3993. Tue Sep 20 17:01:10 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  3994.  
  3995.     * Makefile: Put tags files in the tarfile.
  3996.  
  3997.     * read.c (read_makefile): Get the modtime of the makefile via a stat
  3998.     call so that a later file_mtime call won't do VPATH search for it.
  3999.  
  4000.     * read.c (read_makefile): Don't turn off -t and -q if the makefile
  4001.     was a command-line target.
  4002.  
  4003.     * make.c (main): Enter command-line targets as files and set their
  4004.     `cmd_target' members.
  4005.  
  4006.     * file.h (struct file): Added `cmd_target' member.
  4007.  
  4008.     * read.c (read_makefile): Temporarily turn off -t and -q while
  4009.     updating makefiles.
  4010.  
  4011.     * make.c (main): Don't use arg 0 from other_args (which is now
  4012.     argv[0]; i.e., the program's name).
  4013.  
  4014.     * read.c (read_makefile): Only return nonzero if commands were
  4015.     actually run to remake the makefile.
  4016.  
  4017.     * remake.c (update_file_1): Set FILE->updated to -1 if no commands
  4018.     were actually run (because no update was done or -t was given).
  4019.  
  4020.     * make.c (decode_switches): Fixed bug wherein xrealloc was passed
  4021.     bad args if it tried to expand other_args->list.
  4022.  
  4023.     * read.c (read_all_makefiles): Made it not look at the `MAKE'
  4024.     variable, just use argv[0].
  4025.  
  4026. Sun Sep 18 17:34:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4027.  
  4028.     * read.c (rerun_make): New function to re-exec make.
  4029.  
  4030.     * make.c (construct_makeflags, construct_argv): New functions to
  4031.     construct the `MAKEFLAGS' variable and to construct an arg list from
  4032.     parsed info.
  4033.  
  4034.     * read.c (read_makefile): New arg UPDATEIT, if nonzero, says to
  4035.     update the makefile as a target before reading it in.  When reading
  4036.     included makefiles, pass this as zero.  Now returns nonzero if the
  4037.     makefile was updated, zero if not.
  4038.     (read_all_makefiles): Pass a nonzero UPDATEIT arg to read_makefile
  4039.     for all default and -f makefiles and all makefiles from the
  4040.     `MAKEFILES' variable.  If any of the makefiles has changed, re-exec
  4041.     self to re-read them.
  4042.  
  4043.     * remake.c (update_file): Print a "File `foo' up to date'" message
  4044.     under -p.
  4045.  
  4046.     * commands.c (execute_file_commands): Allocate one byte for each of
  4047.     $^ and $< rather than zero if they are to be empty.
  4048.  
  4049. Fri Sep 16 13:59:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4050.  
  4051.     * Version 3.06.
  4052.  
  4053.     * make.c (command_switches): Fixed entry for `-o' switch.
  4054.  
  4055.     * make.texinfo: Renamed -c switch to -C.
  4056.  
  4057.     * make.c: Renamed -c switch to -C.
  4058.  
  4059.     * Miscellaneous de-linting.
  4060.  
  4061.     * read.c (record_files): Made it not free the storage for the name
  4062.     if it started with `./' and was therefore not quite the same as in
  4063.     the `struct file'.
  4064.  
  4065.     * read.c (record_files): If commands were specified twice, the error
  4066.     message specifies in what files and at what line numbers.
  4067.  
  4068.     * make.c (main): If any of the signals we usually fatal on were
  4069.     ignored by the parent (probably a shell), ignore them.
  4070.  
  4071.     * make.c (main): Print version info for -v, -p, or -d.
  4072.     (print_data_base): Don't print version info.  It will be done in main.
  4073.  
  4074.     * variable.c: Increased number of hash buckets to 257.
  4075.  
  4076.     * file.c: Increased number of hash buckets to 1007.
  4077.  
  4078.     * rule.c (count_implicit_rule_limits): Moved comptation of
  4079.     `maxsuffix' to convert_to_pattern, since that function uses
  4080.     `maxsuffix', and must be called before count_implicit_rule_limits.
  4081.  
  4082.     * rule.c (pattern_search): If an existent (non-intermediate)
  4083.     dependendency was found via a terminal rule, set its
  4084.     `tried_implicit' flag, so it will never have implicit rule search done.
  4085.  
  4086.     * glob.c: Bug fix to avoid alloca(0).
  4087.  
  4088.     * arscan.c: USG and Sun386i fixes.
  4089.  
  4090. Thu Sep 15 19:40:26 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  4091.  
  4092.     * make.texinfo: Fixed some typos and spelling errors.
  4093.  
  4094. Wed Sep  7 14:20:39 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  4095.  
  4096.     * make.c (decode_switches): Fixed bug wherein a bad option would
  4097.     give a useless error message and loop forever.
  4098.  
  4099. Tue Sep  6 14:36:02 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4100.  
  4101.     * make.texinfo: Documented `shell' function.
  4102.  
  4103.     * variable.c (expand_function): New function `shell', does
  4104.     backquote-style command expansion of its arg.
  4105.  
  4106.     * commands.c (execute_command_line): Second arg OUTBUF, if not nil,
  4107.     gets filled in with a malloc'd buffer containing the piped stdout of
  4108.     the command.
  4109.     (execute_file_commands): Use above (pass nil).
  4110.  
  4111. Mon Sep  5 17:03:49 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  4112.  
  4113.     * Makefile: Added copyright notice.
  4114.     Added a comment about defining `NO_MINUS_C_MINUS_O' if necessary.
  4115.  
  4116.     * Version 3.05.
  4117.  
  4118.     * rule.c (default_suffix_rules): Don't pass `-o' switches with `-c'
  4119.     switches if `NO_MINUS_C_MINUS_O' is #define'd.
  4120.  
  4121.     * make.texinfo: Documented `GNUmakefile'.
  4122.  
  4123.     * read.c (read_all_makefiles): Made it try default makefile
  4124.     `GNUmakefile' before others.
  4125.  
  4126.     * make.texinfo: Added new-style Texinfo header thingies.
  4127.  
  4128. Sat Sep  3 18:09:39 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  4129.  
  4130.     * Version 3.04.
  4131.  
  4132.     * make.texinfo (Chained Rules): Added a @cindex about using
  4133.     .PRECIOUS to preserve intermediate files.
  4134.  
  4135.     * remake.c (update_file_1): Made it not just return before executing
  4136.     commands under -p.
  4137.  
  4138.     * rule.c (default_pattern_rules, default_variables): Made it use
  4139.     `$(AR)' for `ar r' (to put files in archives).
  4140.  
  4141.     * vpath.c (build_vpath_lists): Made it recursively expand the
  4142.     `VPATH' variable (by using variable_expand instead of lookup_variable).
  4143.  
  4144.     * read.c (conditional_line): Made it not swallow whitespace after
  4145.     the comma in an `ifeq' using the `(a,b)' syntax.
  4146.  
  4147.     * rule.c (count_implicit_rule_limits): Made it not crash if a
  4148.     pattern rule dep begins with `/'.
  4149.  
  4150. Sun Aug 28 15:51:12 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  4151.  
  4152.     * make.texinfo: Clarified that the arg to the `origin' function is a
  4153.     variable *name*, not a reference.
  4154.  
  4155.     * make.texinfo: Clarified that both -Idir and -I dir are allowed.
  4156.  
  4157. Sat Aug 27 13:49:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4158.  
  4159.     * remake.c (remake_file): Made touching phonies work right.
  4160.  
  4161. Wed Aug 24 20:40:48 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
  4162.  
  4163.     * make.texinfo: Removed reference to `RANLIB' variable.
  4164.  
  4165.     * Version 3.03.
  4166.  
  4167.     * variables.c (expand_function): Added `origin' function.
  4168.     * make.texinfo: Documented same.
  4169.  
  4170.     * read.c (record_files): Made double-colon entries work.
  4171.  
  4172. Sat Aug 20 21:09:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4173.  
  4174.     * make.c (collapse_continuations): Bug fix from RMS.
  4175.  
  4176.     * rule.c (install_default_pattern_rules): Made it set the
  4177.     `in_use' flag of the created rules to zero, rather than letting
  4178.     it be random garbage.
  4179.  
  4180.     * rule.c (pattern_search): Fixed putting `also make' targets into
  4181.     file strucutres.
  4182.  
  4183.     * read.c (record_files): Fixed bug which made double-colon entries
  4184.     make it read off into space.
  4185.  
  4186.     * make.c (decode_switches): Made it understand `ignored' switches
  4187.     rather than dumping core.
  4188.  
  4189. Sun Aug 14 16:49:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4190.  
  4191.     * read.c (read_makefile): Made `include' filenames be
  4192.     variable-expanded.
  4193.  
  4194.     * read.c (read_makefile): Fixed an error message.
  4195.  
  4196.     * read.c (read_makefile): Made it accept ^L's as whitespace.
  4197.     * make.c (next_token, end_of_token): Ditto.
  4198.  
  4199.     * vpath.c (vpath_search): Fixed it so that the general VPATH (from
  4200.     the variable) is always checked, even if a selective VPATH (from a
  4201.     directive) matched the filename.
  4202.  
  4203. Sat Aug 13 14:20:46 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4204.  
  4205.     * make.c (decode_switches, main): Made the command switches be
  4206.     processed from a table of switches, variables, and types.  No
  4207.     functions are passed argc and argv any more.  They are passed arrays
  4208.     of strings they need to process.
  4209.     * read.c (read_all_makefiles): Made it take an array rather than
  4210.     argc and argv.
  4211.     (construct_include_path): Ditto.
  4212.  
  4213.     * make.c (collapse_continuations): Made it work right (I hope).
  4214.  
  4215.     * make.texinfo: Minor editorial changes.
  4216.  
  4217.     * read.c (read_makefile): Minor speed improvement by freeing and
  4218.     then mallocing something rather than reallocing it to avoid the
  4219.     unnecessary bcopy.
  4220.  
  4221. Thu Aug 11 00:10:43 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4222.  
  4223.     * make.texinfo: Fixed some unquoted @'s.
  4224.  
  4225.     * make.texinfo: Documented multiple-target pattern rules.
  4226.     Miscellaneous minor editorial changes and corrections.
  4227.  
  4228.     * make.texinfo (Implicit: Catalogue of Rules): Removed the list of
  4229.     variables.  That's what the next section is for.
  4230.     (Implicit: Implicit Variables): Made it agree with reality.
  4231.  
  4232. Wed Aug 10 00:55:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4233.  
  4234.     * variable.c (print_variable_data_base): Fixed bug which made -p
  4235.     dump core.  (This was a really idiotic bug.)
  4236.  
  4237.     * rule.c (pattern_search): Fixed a bug which made it make the
  4238.     `also_make' member of the file in question nil if the first of
  4239.     the successful rule's targets was the matching one.
  4240.     Made it use only as much storage as necessary in the `also_make'
  4241.     member.
  4242.     (create_pattern): Made it use only as much storage as necessary in
  4243.     the `lens' and `suffixes' members of the created rule.
  4244.  
  4245.     * remake.c (library_file_mtime): Made it `static'.
  4246.  
  4247.     * file.c: Added a declaration for `errno', which is declared in some
  4248.     <errno.h>'s, but not all.
  4249.  
  4250.     * file.h (struct file): Added `also_make' member for multiple-target
  4251.     implicit rules.
  4252.     * rule.c (pattern_search): Made it put the names of files updated by
  4253.     the given file's commands in its `also_make' member.
  4254.     * remake.c (update_file_1): Made it mark the files in a file's
  4255.     `also_make' member as updated when the file is updated.
  4256.  
  4257.     * variable.c (try_variable_definition): Fixed a bug which made it
  4258.     define a variable with the name of the whole definition when there
  4259.     was no space before the = or :=.
  4260.  
  4261.     * make.texinfo (Features): Made the changes which were made in RCS
  4262.     revision 2.7 but somehow lost since then.  Added -W.
  4263.  
  4264. Tue Aug  9 10:04:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4265.  
  4266.     * variable.h: Added `o_default' to `enum variable_origin'.
  4267.     * variable.c (print_variable_data_base): Made it print the origins of
  4268.     the variables.
  4269.     * rule.c (install_default_pattern_rules): Made it define the default
  4270.     variables with origin `o_default'.
  4271.  
  4272.     * make.texinfo: Documented -W.
  4273.  
  4274.     * make.c (decode_switches, main): Added the -W flag to give files a
  4275.     time-stamp of now, for a `what if' effect when used with -n.
  4276.  
  4277.     * commands.c (print_commands): Made it say `(built-in)' for commands
  4278.     that are built into the default ruleset.
  4279.  
  4280.     * read.c (record_file): Made .SUFFIXES get its deps frontwards (again).
  4281.     * rule.c (set_default_suffixes, convert_to_pattern): Made it read
  4282.     .SUFFIXES's deps frontwards, so the converted rules will not be in
  4283.     reverse order.
  4284.  
  4285.     * rule.c (new_pattern_rule): Fixed a bug wherein it would keep
  4286.     searching after it had removed a matching rule and ended up diddling
  4287.     with freed storage.
  4288.  
  4289.     * rule.c (freerule): Made it take the given rule off the chain.
  4290.     (new_pattern_rule, count_implicit_rule_limits): Use freerule to
  4291.     remove rules from the chain.
  4292.  
  4293.     * vpath.c (construct_vpath_list): Made it return after cleaning out
  4294.     all previous searchpaths when given a nil DIRPATH arg, so it won't
  4295.     go into the construction code and dump core dereferencing a nil
  4296.     pointer.
  4297.  
  4298.     * variable.c (patsubst_expand): Fixed a bug which made it not match
  4299.     correctly and sometimes dump core.
  4300.  
  4301. Mon Aug  8 16:35:48 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4302.  
  4303.     * rule.c (default_suffix_rules): Made the .texinfo.dvi rule remove
  4304.     the files used in the comparison to determine whether or not a
  4305.     second TeX run is necessary.
  4306.  
  4307.     * make.texinfo: Fixed some overfull TeX hboxes.
  4308.  
  4309.     * make.texinfo (Implicit: Catalogue of Rules): Fixed a Texinfo error.
  4310.  
  4311.     * rule.c (create_pattern_rule): Fixed bug wherein index was not
  4312.     being passed its second arg.
  4313.  
  4314.     * read.c (getline): Merged back into readline.
  4315.  
  4316.     * rule.c (default_suffixes, default_suffix_rules,
  4317.     default_variables): Added .texinfo.info rule.
  4318.     * make.texinfo (Implicit: Catalogue of Rules): Documented
  4319.     .texinfo.dvi and .texinfo.info rules.
  4320.  
  4321.     * make.texinfo (Top): Changed `last updated' date to be correct (for
  4322.     the last time it was updated, not today).  Changed `for version
  4323.     3.00' since it's not going to be called that.
  4324.  
  4325. Sat Aug  6 19:51:10 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4326.  
  4327.     * commands.c (print_commands): Added this function to print the
  4328.     contents of a `struct commands' for -p.
  4329.     * rule.c (print_rule_data_base): Use above.
  4330.     * file.c (print_file_data_base): Ditto.
  4331.  
  4332.     * rule.c (count_implicit_rule_limits, new_pattern_rule,
  4333.     install_pattern_rule, print_rule_data_base): Made it understand the
  4334.     changed `struct rule' and act accordingly.
  4335.     (freerule): Added this function to free all the storage used by a rule.
  4336.  
  4337.     * rule.c (pattern_search): Made it grok multiple targets of pattern
  4338.     rules.  The matching is done properly, but at present, only the
  4339.     matching pattern's target is used to give deps and commands.
  4340.  
  4341. Fri Aug  5 18:00:29 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4342.  
  4343.     * rule.c (struct rule): Changed name, namelen, and patsuffix members
  4344.     to targets, lens, and suffixes, which are arrays, for multiple targets.
  4345.     (create_pattern_rule): Now takes first arg TARGETS, a nil-terminated
  4346.     array of targets, rather than a single target and patsuffix pointer.
  4347.  
  4348.     * read.c (record_files): If it finds an implicit pattern rule, it
  4349.     collects all the targets into an array and passes the whole thing to
  4350.     create_pattern_rule.  If there are non-pattern targets, it is a
  4351.     fatal error.
  4352.  
  4353. Tue Aug  2 15:06:38 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4354.  
  4355.     * make.c (readline): Split backslash-newline checking from reading
  4356.     and buffer-expanding.
  4357.     (getline): Created to do the reading and buffer-expanding formerly
  4358.     done in readline.
  4359.  
  4360.     * rule.c (pattern_search): Made it reject nonterminal match-anything
  4361.     rules when a specific rule has matched, rather than rejecting
  4362.     terminal match-anything rules in this case.
  4363.  
  4364.     * rule.c (convert_to_pattern): Fixed a bug caused when the change to
  4365.     make it only recognize two-suffix rules whose target suffixes
  4366.     precede their dependency suffixes which made it work in the opposite
  4367.     direction (even worse than it started out).
  4368.  
  4369.     * rule.c (pattern_search): Made it reject nonterminal match-anything
  4370.     rules as intermediate targets when searching for both real and
  4371.     intermediate dependencies, rather than only when searching for
  4372.     intermediate ones.
  4373.  
  4374. Sun Jul 31 00:33:56 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4375.  
  4376.     * rule.c (convert_to_pattern): Made it only recognize two-suffix
  4377.     rules whose target suffix comes before the dependency suffix in the
  4378.     .SUFFIXES list.
  4379.  
  4380.     * variable.c (define_automatic_variables): Made all automatic
  4381.     variables be defined with origin `o_automatic'.
  4382.  
  4383.     * variable.h: Added `o_automatic' to `enum variable_origin'
  4384.  
  4385.     * file.c (remove_intermediates): Made it not print an error message
  4386.     if the error was that the file does not exist.
  4387.  
  4388.     * rule.c: Removed `recursive' member from `struct rule'.
  4389.  
  4390.     * remake.c (library_file_mtime): Made it not use the directory hash
  4391.     functions, as reading in and hashing /usr/lib and /lib is slow and
  4392.     most likely unnecessary.
  4393.  
  4394.     * remake.c (remake_file): Changed message from ``No specification
  4395.     for making'' to ``No way to make'' so it will be short enough that
  4396.     most filenames will fit on a line.
  4397.     Made it look at the `recursive' member of the `struct commands',
  4398.     rather than of the `struct file' (which no longer has one).
  4399.  
  4400.     * commands.c (execute_file_commands): Made it look at the
  4401.     `recursive' member of the `struct commands', rather than of the
  4402.     `struct file' (which no longer has one).
  4403.  
  4404.     * file.h: Removed `recursive' member from `struct file'.
  4405.  
  4406.     * commands.h: Added `recursive' member to `struct commands'.
  4407.  
  4408.     * dep.h: Removed unused `quotedparen' member from `struct nameseq'
  4409.     and `struct dep'.
  4410.  
  4411.     * read.c (dequote): Removed this function.
  4412.     (multi_glob): Removed reference to `quotedparen' member of
  4413.     a `struct nameseq' and calls to dequote.
  4414.  
  4415.     * read.c (record_files): Made it set the stem for $* for all static
  4416.     pattern rules, not just those with commands given at that time.
  4417.     Removed check for recursive commands.
  4418.     Made it check for pairs of .SUFFIXES dependencies to reject as
  4419.     default goals as well as single ones (that don't start with dots).
  4420.     (read_makefile): Added checks for recursive commands to set
  4421.     the `recursive' flag in the `struct commands'.
  4422.  
  4423. Sat Jul 30 15:47:23 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4424.  
  4425.     * make.c (find_next_token): Made the LENGTHPTR arg optionally nil.
  4426.  
  4427.     * make.c: Removed `files_made' variable which is defined static in
  4428.     remake.c and used only there.
  4429.     (main): Cleaned up somewhat.
  4430.     (decode_switches): Cleaned up a bit.  Made an unknown option be a
  4431.     non-fatal error.
  4432.     (decode_env_switches): Made LEN arg unsigned.  Cleaned up.
  4433.     (print_version): Made it say ``see the source'' rather than ``see
  4434.     the source file'', since there is more than one.
  4435.  
  4436.     * file.h: Made `num_intermediates' declared unsigned.
  4437.  
  4438.     * file.c: Made `num_intermediates' variable unsigned.
  4439.     (remove_intermediates): Removed unused FORMAT arg.
  4440.     (enter_file): Made it handle double-colon files properly, adding the
  4441.     new entry as the old entry's prev pointer.
  4442.  
  4443.     * dir.c: Re-indented the `struct dir' definition to be right.
  4444.     (dir_load): Cleaned up slighty.
  4445.     (file_exists_p): Removed comment saying we could use `access', since
  4446.     that is a bad idea (except for setuid programs).  Cleaned up slightly.
  4447.  
  4448.     * commands.c: Changed some comments slightly.
  4449.     (execute_file_commands): Cleaned up a bit.  Changed some comments,
  4450.     added others.  Moved freeing of storage for $^ and $? to the same
  4451.     place as for the other automatic variables.
  4452.     (execute_command_line): Made `#' trigger a shell.
  4453.     Added some comments.  Cleaned up a bit.  Put all the special chars
  4454.     that trigger shells into an array easily changeable at the top.
  4455.  
  4456.     * ar.c: Added comments explaining each function.
  4457.     (ar_scan_1): Merged into ar_member_date.
  4458.     (ar_member_date): Changed call to ar_scan_1 to the body of that
  4459.     function.
  4460.     (ar_member_date_1): Simplified to a ?: expression rather than an
  4461.     if-else statement.
  4462.     (ar_member_touch): Changed error handling around a bit.
  4463.     None of these errors are fatal now.
  4464.  
  4465.     * variable.c (subst_expand): Added a new arg BY_WORD, to do substs
  4466.     only on full words.
  4467.     (patsubst_expand): Fixed bug which made calls whose patterns
  4468.     contained no `%' to not work correctly, by using above.
  4469.     (variable_expand): Pass extra arg to `subst_expand'.
  4470.  
  4471.     * variable.c (expand_function): Fixed bug which made `foreach' calls
  4472.     with one-word lists run off into never-never land.
  4473.  
  4474. Fri Jul 29 20:12:36 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4475.  
  4476.     * variable.c (expand_function): Made a very minor speed improvement
  4477.     by avoiding an unnecessary strlen call.
  4478.  
  4479. Wed Jul 27 16:01:47 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4480.  
  4481.     * rule.c (default_suffixes): Rearranged the list somewhat; added
  4482.     `.el' and `.elc' to speed things up (especially when building
  4483.     Emacs), for the same reason `.h' is there.
  4484.  
  4485.     * read.c (record_files): Changed `lineno' from `long' to
  4486.     `unsigned int'.
  4487.  
  4488. Sun Jul 24 02:15:30 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4489.  
  4490.     * variable.c (expand_function): Eliminated use of `wstok'
  4491.     because it is non-reentrant and unreliable.
  4492.     Fixed a minor bug which would cause something not to be freed.
  4493.     * make.c (wstok): Removed `wstok' because it is no longer used.
  4494.  
  4495.     * variable.c (expand_function): Made `foreach' function put
  4496.     spaces between output texts like it's supposed to.
  4497.     
  4498. Sat Jul 23 17:32:55 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4499.  
  4500.     * rule.c (default_suffixes, default_suffix_rules): Added rule
  4501.     to make %.dvi from %.texinfo.
  4502.  
  4503.     * dir.c (print_dir_data_base): Made it say a bit more.
  4504.  
  4505. Fri Jul 22 23:13:16 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4506.  
  4507.     * make.c (print_data_base): Split this function up into one
  4508.     for each thing.
  4509.     * variable.c (print_variable_data_base): One of the above.
  4510.     * rule.c (print_rule_data_base): Ditto.
  4511.     * file.c (print_file_data_base): Ditto.
  4512.     * dir.c (print_dir_data_base): Ditto.
  4513.  
  4514.     * rule.c (install_pattern_rule): Fixed a bug which caused the
  4515.     terminal and recursive flags to always be zero for rules
  4516.     entered by this function.
  4517.  
  4518.     * make.texinfo (Rules: Double-colon): Added a paragraph
  4519.     explaining the purpose of double-colon rules.
  4520.  
  4521.     * make.texinfo (Implicit: Catalogue of Rules): Updated to
  4522.     reflect new C++, TeX, Web, and Texinfo rules.  Other slight
  4523.     editorial changes.
  4524.  
  4525.     * commands.c (execute_file_commands): Fixed a bug wherein
  4526.     random memory could get written for files with no deps.
  4527.     
  4528. Wed Jul 20 19:30:31 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4529.  
  4530.     * read.c (readline): Fix bug wherein it would not recognize a
  4531.     backslash-newline if the buffer filled up and was enlarged
  4532.     right before reading the newline.
  4533.     
  4534. Tue Jul 19 19:55:02 1988  Roland McGrath  (mcgrath at chilli.Berkeley.EDU)
  4535.  
  4536.     * read.c: Added default suffix rules for .cc (using $(C++),
  4537.     which defaults to `g++', and $(C++FLAGS)), .tex, .dvi, .web
  4538.     and .cweb (using $(TEX), $(WEAVE), $(TANGLE), $(CWEAVE) and
  4539.     $(CTANGLE)).
  4540.     
  4541. Sat Jul 16 21:24:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4542.  
  4543.     * Made error formats use %u rather than %ld for line numbers,
  4544.     which are now unsigned int's rather than long's.
  4545.  
  4546.     * read.c (conditional_line): Fixed some bugs caused by use of
  4547.     unsigned int rather than int in one place.
  4548.  
  4549.     * read.c (conditional_line): Put the info about active
  4550.     conditionals in a struct.
  4551.     (read_makefile): Make a new struct of info about conditionals
  4552.     for included makefiles and restore the old one after the
  4553.     included makefile has been read.
  4554.  
  4555.     * read.c (read_makefile): Don't try to read a makefile with
  4556.     name "" after giving an error message because an `include'
  4557.     directive gave no filename.
  4558.  
  4559.     * read.c (read_makefile): Give an error message for
  4560.     non-whitespace text after the filename in an `include' directive.
  4561.  
  4562.     * make.c (error): Take five args, like `fatal'.  It managed to
  4563.     lose with only two.  Is there a better way to do this without vfprintf?
  4564.  
  4565.     * read.c (read_makefile): Commands consisting of only
  4566.     whitespace are not the same as no commands.  I thought I'd
  4567.     fixed this bug months ago; it seems to have come back.
  4568.  
  4569.     * make.c (collapse_continuations): All whitespace around a
  4570.     backslash-newline combination is turned into a single space.
  4571.  
  4572.     * Added COPYING file and copyright notices to all files.
  4573.  
  4574.     * make.texinfo (Running: Goals): Fix a typo.
  4575.  
  4576.     * read.c (do_define): Take an arg for the origin of the
  4577.     variable being defined.
  4578.     (read_makefile): Grok `override define'.
  4579.  
  4580.     * make.texinfo (Variables: Override Directive, Defining):
  4581.     Document the `override define' combination directive.
  4582.  
  4583.     * ar.c (ar_member_date): Make a 0 return from `ar_scan' return
  4584.     (time_t) -1 (nonexistent file), rather than (time_t) 0, which,
  4585.     when put in the `struct file', makes `file_mtime' try to get
  4586.     the mtime over and over again.
  4587.  
  4588.     * variable.c (pattern_matches): Fix a bug that made patterns
  4589.     not beginning with `%' never match.
  4590.     
  4591. Fri Jul 15 21:01:44 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4592.  
  4593.     * Took Make out of RCS.
  4594.  
  4595.     * Split the monolithic `make.c' into several smaller files.
  4596.  
  4597. Local Variables:
  4598. mode: indented-text
  4599. left-margin: 8
  4600. version-control: never
  4601. make-backup-files: nil
  4602. End:
  4603.